mxnet.image¶
Image Iterators and image augmentation functions
Image processing functions¶
|
Decode an image to an NDArray. |
|
Scales down crop size if it’s larger than image size. |
|
Resizes shorter edge to size. |
|
Crop src at fixed location, and (optionally) resize it to size. |
|
Randomly crop src with size (width, height). |
|
Crops the image src to the given size by trimming on all four sides and preserving the center of the image. |
|
Normalize src with mean and std. |
|
Randomly crop src with size. |
Image classifiction¶
Iterators¶
|
Image data iterator with a large number of augmentation choices. |
Augmentations¶
|
Creates an augmenter list. |
|
Image Augmenter base class |
|
Composing a sequential augmenter list. |
|
Apply list of augmenters in random order |
|
Make resize shorter edge to size augmenter. |
|
Force resize to size regardless of aspect ratio |
|
Make random crop augmenter |
|
Make random crop with random resizing and random aspect ratio jitter augmenter. |
|
Make center crop augmenter. |
|
Random brightness jitter augmentation. |
|
Random contrast jitter augmentation. |
|
Random saturation jitter augmentation. |
|
Random hue jitter augmentation. |
|
Apply random brightness, contrast and saturation jitter in random order. |
|
Add PCA based noise. |
|
Mean and std normalization. |
Randomly convert to gray image. |
|
Random horizontal flip. |
|
|
Cast to float32 |
Object detection¶
Iterators¶
|
Image iterator with a large number of augmentation choices for detection. |
Augmentations¶
|
Create augmenters for detection. |
|
Borrow standard augmenter from image classification. |
|
Randomly select one augmenter to apply, with chance to skip all. |
Random horizontal flipping. |
|
|
Random cropping with constraints |
|
Random padding augmenter. |