Image.bilevel

Changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image.

More precisely each channel value of the image is 'thresholded' so that if it is equal to or less than the given value it is set to zero, while any value greater than that give is set to it maximum or QuantumRange.

Parameters

threshold Quantum

The threshold value.

channel ChannelType

One or more channels to adjust.

Meta