23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

contrast<br />

2contrast<br />

Purpose Grayscale colormap for contrast enhancement<br />

Syntax cmap = contrast(X)<br />

cmap = contrast(X,m)<br />

Description The contrast function enhances the contrast of an image. It creates a new gray<br />

colormap, cmap, that has an approximately equal intensity distribution. All<br />

three elements in each row are identical.<br />

2-324<br />

cmap = contrast(X) returns a gray colormap that is the same length as the<br />

current colormap.<br />

cmap = contrast(X,m) returns an m-by-3 gray colormap.<br />

Examples Add contrast to the clown image defined by X.<br />

load clown;<br />

cmap = contrast(X);<br />

image(X);<br />

colormap(cmap);<br />

See Also brighten, colormap, image

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!