# contrast

## Purpose

Gray scale colormap for contrast enhancement.

## Synopsis

    cmap = contrast(X,m)
    cmap = contrast(X)

## Description

`cmap = contrast(X,m)`, where `X` is a matrix of indices into the current colormap, returns the gray scale colormap `cmap`. `cmap` is a matrix with `m` rows and three identical columns such that the bins of a histogram for

    image(X)
    colormap(cmap)

have an approximately equal intensity distribution. The default value for `m` is 64.

## Examples

## See Also

    brighten, gray

(c) Copyright 1994 by The MathWorks, Inc.