Resize images using nearest neighbor and

resizeImageNN(imx, width, height)

resizeImageBL(imx, width, height)

Arguments

imx

a 3-dimensional array containing image data

width

the new width

height

the new height

Value

a three-dimensional array containing the resized image.

Details

The resizeImageNN function uses the nearest neighbor method to resize the image. Also, resizeImageBL uses bilinear interpolation to resize the image.