imgRotate {biOps}R Documentation

Rotate an image

Description

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

Usage

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

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

[Package biOps version 0.2.1 Index]