Convert input BufferedImage to NDArray of input shape
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 (1,3,224,224). Should be same as inputDescriptor shape.
NDArray pixels array
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
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