Quickstart
Import the library:
using DataAugmentation # Image, CenterResizeCrop, apply, showitem
using TestImages: testimage
Load your data:
image = testimage("lighthouse")

Create an item that contains the data you want to augment:
item = Image(image)
Image{2, ColorTypes.RGB{FixedPointNumbers.N0f8}}() with bounds Bounds(1:512×1:768)
Create a transform:
tfm = CenterResizeCrop((128, 128))
Sequence{Tuple{DataAugmentation.CroppedProjectiveTransform{ScaleKeepAspect{2}, Tuple{Crop{2, DataAugmentation.FromCenter}}}, PinOrigin}}((DataAugmentation.CroppedProjectiveTransform{ScaleKeepAspect{2}, Tuple{Crop{2, DataAugmentation.FromCenter}}}(ScaleKeepAspect{2}((128, 128)), (Crop{2, DataAugmentation.FromCenter}((128, 128), DataAugmentation.FromCenter()),)), PinOrigin()))
Apply the transformation and unwrap the data:
titem = apply(tfm, item)
timage = itemdata(titem)
