resize an image using the 'nearest neighbors' or the 'bilinear' method
resize an image using the 'nearest neighbors' or the 'bilinear' method
resizeImage(image, width, height, method = "nearest")
image |
matrix or 3-dimensional array |
width |
a number specifying the new width of the image. Corresponds to the image-rows. |
height |
a number specifying the new height of the image. Corresponds to the image-columns. |
method |
one of 'nearest', 'bilinear' |
This function down- or upsamples an image using the 'nearest neighbors' or the 'bilinear' method
depending on the input, either a matrix or an array
Lampros Mouselimis
path = system.file("tmp_images", "2.jpg", package = "OpenImageR") image = readImage(path) resiz = resizeImage(image, width = 32, height = 32, method = 'nearest')
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.