rotate270: Rotate an image (or matrix) 270 degrees.

Description Usage Arguments Value Author(s) See Also Examples

Description

Rotate an image (or matrix) 270 degrees.

Usage

1

Arguments

img

A matrix or numeric array representation of an image.

Value

An image of equal dimensionality to the input, rotated 270 degrees.

Author(s)

Allison Irvine

See Also

displayImg

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
	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)

IM documentation built on May 2, 2019, 8:55 a.m.