4.4. Grayscale image to binary image

This process will change the grayscale image to a binary image, which is an image with only black and white pixels in it. Figure 6(a) shows the grayscale image after the conversion process. The pixel values that exist in this format of image are only 0, which is black in color, and 1, which is white in color. Figure 6(b) shows the resulting image of the binary image after it has been through the threshold method when the threshold has been set to the value of 0.5.
