rotate270 {IM} | R Documentation |
Rotate an image (or matrix) 270 degrees.
rotate270(img)
img |
A matrix or numeric array representation of an image. |
An image of equal dimensionality to the input, rotated 270 degrees.
Allison Irvine
data(pirate); #perform histogram equalization img = histeq(img); #convert to grayscale img = rowSums(img, dims=2)/3; #rotate image 270 degrees so it appears upright img = rotate270(img); #set colors levels = seq(0,1,.0000001); g = gray(levels); image(img,col=g)