imgRotate: Rotate an image

Description Usage Arguments Value See Also Examples

Description

This function rotates an image using the given interpolation and returns a new image.

Usage

1
imgRotate(imgdata, angle, interpolation)

Arguments

imgdata

The image

angle

The clockwise deg angle to rotate

interpolation

The interpolation method: nearestneighbor | bilinear | cubic | spline

Value

return an imagedata object

See Also

imgNearestNeighborRotate imgBilinearRotate imgCubicRotate imgSplineRotate imgRotate90Clockwise imgRotate90CounterClockwise

Examples

1
2
3
4
5
	## Not run: 
		x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
		y <- imgRotate(x, 45, 'spline')
	
## End(Not run)

matiasb/biOps documentation built on May 21, 2019, 12:55 p.m.