rotate.im.Rd
\name{rotate.im}
\alias{rotate.im}
\title{Rotate a Pixel Image}
\description{
Rotates a pixel image
}
\usage{
\method{rotate}{im}(X, angle=pi/2, \dots, centre=NULL)
}
\arguments{
\item{X}{A pixel image (object of class \code{"im"}).}
\item{angle}{Angle of rotation, in radians.}
\item{\dots}{Ignored.}
\item{centre}{
Centre of rotation.
Either a vector of length 2, or a character string
(partially matched to \code{"centroid"}, \code{"midpoint"}
or \code{"bottomleft"}).
The default is the coordinate origin \code{c(0,0)}.
}
}
\value{
Another object of class \code{"im"} representing the
rotated pixel image.
}
\details{
The image is rotated by the angle specified.
Angles are measured in radians, anticlockwise.
The default is to rotate the image 90 degrees anticlockwise.
}
\seealso{
\code{\link{affine.im}},
\code{\link{shift.im}},
\code{\link{rotate}}
}
\examples{
Z <- distmap(letterR)
X <- rotate(Z)
\dontrun{
plot(X)
}
Y <- rotate(X, centre="midpoint")
}
\author{\adrian
and \rolf
}
\keyword{spatial}
\keyword{math}