In the realm of computer vision, a grayscale image depicts a scene or an object through a series of gray shades instead of the entire color spectrum. Usually, grayscale images are generated by transforming a full - color image into a single-channel one. In such an image, the intensity of each pixel is denoted by a solitary value ranging from 0 (representing black) to 255 (representing white).