12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

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.

contrastPurpose2contrastGrayscale colormap for contrast enhancementSyntaxDescriptioncmap = contrast(X)cmap = contrast(X,m)The contrast function enhances the contrast of an image. It creates a new graycolormap, cmap, that has an approximately equal intensity distribution. Allthree elements in each row are identical.cmap = contrast(X) returns a gray colormap that is the same length as thecurrent colormap.cmap = contrast(X,m) returns an m-by-3 gray colormap.Examples Add contrast to the clown image defined by X.load clown;cmap = contrast(X);image(X);colormap(cmap);See Alsobrighten, colormap, image2-113

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

Saved successfully!

Ooh no, something went wrong!