Grayscale colormap for contrast enhancement
cmap = contrast(X)
cmap = contrast(X,m)
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.
Add contrast to the clown image defined by X.
load clown; cmap = contrast(X); image(X); colormap(cmap);