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