This is a straightforward and quite fast operation [3] to implement. All one has to do is retrieve the pixel value of an image, compare it to a preselected threshold value and replace the original pixel by either a one (or 255) or a zero depending on whether the threshold is greater than the pixel value or not. Figure 7 shows this operator.
Figure 7: The Thresholding Applet