| imgNearestNeighborRotate {biOps} | R Documentation |
This function rotates an image using nearest neighbor interpolation and returns a new image.
imgNearestNeighborRotate(imgdata, angle)
imgdata |
The image |
angle |
The clockwise deg angle to rotate |
return an imagedata object
imgRotate
imgBilinearRotate
imgCubicRotate
imgSplineRotate
imgRotate90Clockwise
imgRotate90CounterClockwise
## Not run:
x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
y <- imgNearestNeighborRotate(x, 45)
## End(Not run)