Package ai.djl.modality.cv.transform
Contains
Transforms for working with Images.-
Class Summary Class Description CenterCrop ATransformthat crops the center of an image.Crop ATransformthat crops the image to a given location and size.Normalize OneHot RandomBrightness ATransformthat randomly jitters image brightness with a factor chosen from [max(0, 1 - brightness), 1 + brightness].RandomColorJitter ATransformthat randomly jitters the brightness, contrast, saturation, and hue of an image.RandomFlipLeftRight ATransformthat randomly flip the input image left to right with a probability of 0.5.RandomFlipTopBottom ATransformthat randomly flip the input image top to bottom with a probability of 0.5.RandomHue ATransformthat randomly jitters image hue with a factor chosen from [max(0, 1 - hue), 1 + hue].RandomResizedCrop ATransformthat crop the input image with random scale and aspect ratio.Resize ATransformthat resizes the image.ToTensor