In essence, you can divide it up how you like since you don't care too much for quality. One side has 8 squares going from black to red, one side has 8 squares going from black to green and one side has 4 squares going from black to blue. You essentially have a Rubik's cube of colours, which measures 8 x 8 x 4 if you can take a moment to imagine that. Somehow is it possible to quantify all the values of the 8 bit color img into the respective gray shades ? Quality of the image doesn't matter much. I want to implement the above system upon an FPGA, hence memory is a keen aspect. How to quantify the graylevels for values of bits other than the ones mentioned above. Which bits to consider from Red and Green components and which to ignore. Therefore, if i consider 2 bits of R ,G and B, i manage to obtain gray levels as follows : R G B GrayLevel And since Blue component has only 2 bits, effectively, there are 2 2 combinations i.e. (because, in grayscale, a white pixel is obtained when there is 100 % contribution of each of the R,G,B components. So the above image will actually have 4 shades in total Structure of an 8 bit color image is as follows : ![]() So how to calculate grayscale image for an 8 bit color image : Thus when we apply the above averaging methods, we get a resultant 8 bit grayscale image from a 24 bit True color image. Where 8 bits are used to denote R, G, B content each. However these above formula works for a 24 bit image (correct me if i'm wrong). ![]() įor a normal 24 bit true color RGB image, we either perform averaging ( R + G + B ) / 3Īnd then there's' the Weighted Averaging wherein we calculate 0.21 R + 0.72 G + 0.07 B. What is the method to convert this into a Grayscale Image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |