pub fn resize<T: HasAfEnum>(
) -> Array<T>
Resize an Image
Resizing an input image can be done using either NEAREST or BILINEAR interpolations. Nearest interpolation will pick the nearest value to the location, whereas bilinear interpolation will do a weighted interpolation for calculate the new size.
This function does not differentiate between images and data. As long as the array is defined and the output dimensions are not 0, it will resize any type or size of array.
inputis the image to be resized
odim0is the output height
odim1is the output width
methodindicates which interpolation method to use for resizing. It uses enum InterpType to identify the interpolation method.