You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Abonia Sojasingarayar edited this page Jan 30, 2019
·
2 revisions
Greyscale image
Convert image to gray
The first processing step is to convert the the color image to greyscale, effectively downgrading the color space from three-dimensions to one-dimension. It’s much easier (and more effective) to manipulate the image in only one-dimension: This one dimension is the “darkness” or “intensity” of the pixel, with 0 representing black, 255 representing white, and 126 representing some middle grey color.
For skyblue color:
note:cause most of the road side image with vehicle comes with sky
It can be represented in RGB (red, green, blue) space as (120, 172, 209).
If I average these values together I get (120 + 172 + 209)/3 = 167, or this color in greyscale space.
our eyes have many more green receptors than red or blue receptors, the value for green should be weighted more heavily in the greyscale function
our eyes have many more green receptors than red or blue receptors, the value for green should be weighted more heavily in the greyscale function.
After applying greyscale filter we get output image as gray