HistogramSpec

Syntax

Document.HistogramSpec ( Curve[, CurveName ] )

Parameters

HistogramType Curve - specifies the desired shape of the image's histogram after equalization

mxUniformHS (0) : Uniform, i.e. the same number of pixels in each bin

mxExponentialHS (1) : Exponential

mxLogNormalHS (2) : LogNormal

mxGaussianHS (3) : Gaussian

mxRayleighHS (4) : Rayleigh

mxStraightLineHS (5) : Linearly decreasing numbers of pixels in each successively higher bin

mxUserDefinedHS (6) : User-defined histogram shape

VARIANT CurveName - specifies the name of the user-defined histogram shape to be applied.  This parameter must be specified when Curve is set to mxUserDefinedHS, and must be omitted otherwise.

Returns

Nothing

Remarks

Provides a generalized form of histogram equalization, that is, applying a non-linear transfer function to the image so that a histogram of the resulting image will exhibit a particular shape, specified by the parameter Curve. This can be used to enhance subtle features in an image without completely driving other parts of the image to black or white.

User-defined histograms can be used and are specified by name, but the shapes themselves must be defined using the GUI.

This method is equivalent to the Histogram Specification command.