ImageToNDArrayStep
is a PipelineStep
for converting images to n-dimensional arrays. The exact way that images are converted is highly configurable (formats, channels, output sizes, normalization, etc).false
. Default is @ImageToNDArrayStepMetadata
ImageToNDArrayConfig
is configuration for converting an image into n-dimensional array. This configuration is used in config
from ImageToNDArrayStep
, for example:FLOAT
.CHANNELS_FIRST
or (1, Height, Width, Channels) instead of (Height, Width, Channels) for format == CHANNELS_LAST
. Default is true
.CENTER_CROP
(crop larger dimension then resize if necessary), PAD
(pad smaller dimension then resize if necessary), STRETCH
(simply resize, distorting if necessary). Default is CENTER_CROP
.CHANNEL_FIRST
. Another option is CHANNEL_LAST
.RGB
vs. BGR
etc, default value is RGB
.NONE
.