How to apply Gray-Scale filter? #25
-
Discuss algorithm on how to apply |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
By applying the In GrayScale effect all channels (red, green, blue) of a pixel have a specific value that, results in gray and according to this value, various shades of gray a pixel can have. Higher values mean lighter shades (closer to white) and lower values mean darker shades (closer to black). There are different algorithms for Grayscale, however here is an illustration of Example of Original Image vs Grayscale ImagePseudocode for Grayscale filter
|
Beta Was this translation helpful? Give feedback.
By applying the
Grayscale
effect the original image will convert to a black and white image.In GrayScale effect all channels (red, green, blue) of a pixel have a specific value that, results in gray and according to this value, various shades of gray a pixel can have. Higher values mean lighter shades (closer to white) and lower values mean darker shades (closer to black).
There are different algorithms for Grayscale, however here is an illustration of
Average algorithm
In the average algorithm, in a Grayscale image, each pixel's red, green and blue channel contains the same value i.e the average of the 3 channels of the original image.
Example of Original Image vs Grayscale Image
Pseud…