histeq {IM}R Documentation

Perform histogram equalization on an image.

Description

Perform histogram equalization on an image.

Usage

	histeq(I)

Arguments

I

A matrix or numeric array representation of an image.

Value

An image of equal dimensions to the input, with histogram equalization applied to all color channels.

Author(s)

Tan Dang

See Also

displayImg

Examples

	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);
	## Not run: image(img,col=g)

[Package IM version 1.0 Index]