Resize images using nearest neighbor and
resizeImageNN(imx, width, height)
resizeImageBL(imx, width, height)
imx | a 3-dimensional array containing image data |
---|---|
width | the new width |
height | the new height |
a three-dimensional array containing the resized image.
The resizeImageNN function uses the nearest neighbor method to resize the image. Also, resizeImageBL uses bilinear interpolation to resize the image.