| Class and Description |
|---|
| AspectRatioHandling
How We should handle the situation where the input image and output image/NDArray have different aspect ratios?
Use in ImageToNDArrayConfig and ImageResizeStep
See ImageToNDArrayConfig for more detailsCENTER_CROP: Crop the larger dimension down to the correct aspect ratio (and then resize if necessary). PAD: Zero pad the smaller dimension to make the aspect ratio match the output (and then resize if necessary) STRETCH: Simply resize the image to the required aspect ratio, distorting the image if necessary |
| ImageNormalization
NONE: No image normalization will be applied
SCALE: Divide images by maxValue/2, or divide by 255/2 if maxValue is not specified, then subtract 1.0,
to give output in range [-1,1].
|
| NDChannelLayout
Represents the type (and order) of the channels for an image after it has been converted to an NDArray
RGB: 3 channels, ordered according to: red, green, blue - most common for TensorFlow, Keras, and some other libraries
BGR: 3 channels, ordered according to: blue, green, red - the default for OpenCV, JavaCV, DL4J
RGBA: 4 channels, ordered according to: red, green, blue, alpha
BGRA: 4 channels, ordered according to: blue, green, red, alpha
GRAYSCALE: 1 channel - grayscale
|
| NDFormat |
| Class and Description |
|---|
| AspectRatioHandling
How We should handle the situation where the input image and output image/NDArray have different aspect ratios?
Use in ImageToNDArrayConfig and ImageResizeStep
See ImageToNDArrayConfig for more detailsCENTER_CROP: Crop the larger dimension down to the correct aspect ratio (and then resize if necessary). PAD: Zero pad the smaller dimension to make the aspect ratio match the output (and then resize if necessary) STRETCH: Simply resize the image to the required aspect ratio, distorting the image if necessary |
| ImageNormalization.Type |
| NDChannelLayout
Represents the type (and order) of the channels for an image after it has been converted to an NDArray
RGB: 3 channels, ordered according to: red, green, blue - most common for TensorFlow, Keras, and some other libraries
BGR: 3 channels, ordered according to: blue, green, red - the default for OpenCV, JavaCV, DL4J
RGBA: 4 channels, ordered according to: red, green, blue, alpha
BGRA: 4 channels, ordered according to: blue, green, red, alpha
GRAYSCALE: 1 channel - grayscale
|
| NDFormat |
| Class and Description |
|---|
| AspectRatioHandling
How We should handle the situation where the input image and output image/NDArray have different aspect ratios?
Use in ImageToNDArrayConfig and ImageResizeStep
See ImageToNDArrayConfig for more detailsCENTER_CROP: Crop the larger dimension down to the correct aspect ratio (and then resize if necessary). PAD: Zero pad the smaller dimension to make the aspect ratio match the output (and then resize if necessary) STRETCH: Simply resize the image to the required aspect ratio, distorting the image if necessary |
Copyright © 2022. All rights reserved.