Masking and removing green pixels

조회 수: 8(최근 30일)
Jagdish kamble
Jagdish kamble 2014년 10월 26일
편집: Image Analyst 2015년 10월 27일
I am performing Plant disease detection.so I want to identify the mostly green colored pixels. After that, based on specified threshold value that is computed for these pixels, the mostly green pixels i want to masked as follows: if the green component of the pixel intensity is less than the pre-computed threshold value, the red, green and blue components of the this pixel is assigned to a value of zero. pleae give me solution for Masking the green pixels
  댓글 수: 2
Jagdish kamble
Jagdish kamble 2014년 10월 26일
I does not know to find threshold value .

댓글을 달려면 로그인하십시오.

답변(2개)

Image Analyst
Image Analyst 2014년 10월 26일
편집: Image Analyst 2015년 10월 27일
See my "color detection by hue" tutorial in my File Exchange http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 It can do this. Simply adapt the thresholds, by looking at the histograms, to select green instead of yellow.
  댓글 수: 8
saed makhool
saed makhool 2015년 10월 27일
THANKS ALOT

댓글을 달려면 로그인하십시오.


Matt Tearle
Matt Tearle 2014년 10월 27일
At the risk of being accused of shameless self-promotion... I blogged about a similar problem on Steve Eddins's Image Processing blog. Perhaps some of my experiences might be of use?

Community Treasure Hunt

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

Start Hunting!

Translated by