how to get the values of blue channel minus green channel of an rgb image?

1 回表示 (過去 30 日間)
charuleelaa vanilavarasu
charuleelaa vanilavarasu 2016 年 2 月 3 日
コメント済み: Walter Roberson 2016 年 2 月 3 日
that is m=G-B this is done because soil and vegetation both have high hue as well, but these objects tend to have relative high value of green and red, respectively. So m is employed to distinguish between these objects and real shadows areas. i can get the blue channels and green channels separately.
  2 件のコメント
Guillaume
Guillaume 2016 年 2 月 3 日
Tagging your question as urgent tends to antagonise contributors and thus makes it less likely you'll get an answer.
Guillaume
Guillaume 2016 年 2 月 3 日
Moreover, since you say you can get the value of blue and green channels separately, what stopping you to take their difference?

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2016 年 2 月 3 日
" soil and vegetation both have high hue" <== Not true. A high hue value is purple. I've not seen purple soil and only occasionally purple vegetation. Vegetation will have high saturation (chroma), and soil may (red, brown) or may not (black dirt) have high saturation.
I rarely do color segmentation in RGB color space. I have several color segmentation demos in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 Using a different color space may make it easier.
Try the Color Thresholder App on the Apps tab of the tool ribbon.
To answer your question
m = double(greenChannel) - double(blueChannel);
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 2 月 3 日
By the way, purple potatoes are yummy. :-) So is purple cabbage; and purple corn makes a nice change. But Eggplant -- well, keep in mind that Eggplant is a member of the deadly Nightshade family ;-(

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAgriculture についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by