MATLAB Function Reference |
Grayscale colormap for contrast enhancement
Syntax
Description
The contrast
function enhances the contrast of an image. It creates a new gray colormap, cmap
, that has an approximately equal intensity distribution. All three elements in each row are identical.
cmap = contrast(X)
returns a gray colormap that is the same length as the current colormap.
cmap = contrast(X,m)
returns an m
-by-3 gray colormap.
Examples
Add contrast to the clown image defined by X
.
See Also
Colormaps for related functions
contourslice | conv |
© 1994-2005 The MathWorks, Inc.