A PipelineStep for converting
Images to
NDArrays.
The exact way that images are converted is highly configurable (formats, channels, output sizes, normalization, etc) -
see
ImageToNDArrayConfig for more details
The following configuration is available:
- config: the
ImageToNDArrayConfig configuration for how conversion should be performed
- keys: may be null. If non-null: These are the names of images in the Data instance to convert
- outputNames: may be null. If non-null: the input images are renamed to this in the output Data instance after conversion to NDArray
- keepOtherValues: True by default. If true: copy all the other (non-converted/non-image) entries in the input Data to the output Data
- metadata: False by default. If true: include metadata about the images in the output Data - for example if/how it was cropped,
and the original input size.
- metadataKey: Sets the key that the metadata will be stored under. Default:
DEFAULT_METADATA_KEY. Not relevant if
metadata == false
Note that metadata will have the following format:
If a single image is converted, the metadata Data instance will have a nested Data instance
i.e.:
Data meta = myData.get( "@ImageToNDArrayStepMetadata");
}