Tuesday, October 1, 2024

Greyscale Image : A Computer Vision Perspective

 



Figure 1. The example of grayscale image

Not only in the result of the image that is printed on the paper, in the digital field there are images that provide only no colour or known as greyscale image. The grayscale image (see Figure 1) can be realized by composing on each pixel with the difference of white levels. The low level of grayscale image especially on the pixel scale means the dark level or will appear as black color, otherwise the high level of grayscale will make the image appear as white. In the digital image, for each pixel of the greyscale image, it is represented by an integer number with the level ranging from 0 to 255. 0 is black and 255 is white. This integer number can also be represented in binary number with the amount of 8 bits. The number 0 can be represented starting from the binary number 0b0000000000 until the maximum level number is 255, or it can be represented in binary number as 0b1111111111. The prefix of 0b means as binary number format. The grayscale image in the digital domain is defined as array data with the length of the matrix is arranged by 2 dimensions array.