MATLAB: GREEN color and BROWN COLOR pixel counting in an image

brown color pixels countgreen pixels counthistogram comparisionimage segmentationleaf

I have plants with green and brown colors. I want to count both green and brown color pixels with different gray levels. If green colour pixels are more than brown colored pixels I have to display it as not optimally grown and if it is of brown colored pixels more than green colored pixels then it should display it as optimally grown..
Can I use histogram plot for this?
please send the code if any?
thanks in advance

Best Answer

Yes, you can. There are questions on this regularly. Search for the tag leaf.
Related Question