Reputation: 864
I was reading an article and they work on the gray image from green channel. They work with retina images and detect blood vessels on it.
My questions are that:
What does 'gray image from green channel' mean?
How can I get this gray image from green channel?
What is the difference between the gray image which is result of this matlab code I = rgb2gray(RGB)
and gray image from green channel?
Thank you.
Upvotes: 0
Views: 2108
Reputation: 207345
Just for fun, you can do it with ImageMagick which is installed on most Linux/Unix boxes and available for free for Windows and OSX like this:
Starting with this image:
convert plant.jpg -separate -delete 0,2 out.jpg
That separates the image into Red, Green and Blue channels, then deletes the Red and Blue channels leaving just the Green channel which then becomes a monochromatic (grey) representation of the amount of green in each pixel - so the green of the plant shows up the brightest/lightest.
Upvotes: 1