Thresholding

Code Snippets

Thresholding transforms an image by classifying the pixel values using these methods:

These functions also return the average gray levels of each pixel below and above the threshold.