Convert input BufferedImage to NDArray of input shape Note: Caller is responsible to dispose the NDArray returned by this method after the use.
Convert input BufferedImage to NDArray of input shape Note: Caller is responsible to dispose the NDArray returned by this method after the use.
BufferedImage to get pixels from
Input shape; for example for resnet it is (3,224,224). Should be same as inputDescriptor shape.
The DataType of the NDArray created from the image that should be returned. Currently it defaults to Dtype.Float32
NDArray pixels array with shape (3, 224, 224) in CHW format
Loads an input images from file
Loads an input images from file
Path of single input image
BufferedImage Buffered image
Loads a batch of images from a folder
Loads a batch of images from a folder
Path to a folder of images
List of buffered images
Reshape the input image to a new shape
Reshape the input image to a new shape
Input image
New width for rescaling
New height for rescaling
Rescaled BufferedImage