Learn R Programming

cmna (version 0.1.2)

resizeImage: Image resizing

Description

Resize images using nearest neighbor and

Usage

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.