Image.contrastStretch

This is a simple image enhancement technique that attempts to improve the contrast in an image by `stretching' the range of intensity values it contains to span a desired range of values. It differs from the more sophisticated histogram equalization in that it can only apply a linear scaling function to the image pixel values. As a result the `enhancement' is less harsh.

class Image
void
contrastStretch

Parameters

blackPoint double

Black out at most this many pixels. Specify an apsulute number of pixels or an percentage by passing a value between 1 and 0

whitePoint double

Burn at most this many pixels. Specify an apsulute number of pixels or an percentage by passing a value between 1 and 0

channel ChannelType

One or more channels to adjust.

Meta