title: Matlab - How to detect green color on image?
body: <p>I'm working in project that basically I have to detect the threes on image and delete the other information. I used HSV as segmentation and the function regionprops to detect each element. It works fine, but in same cases that has house roofs, they aren't deleted because the value of Hue is similar to the threes. So far, this is the result:
  <a href="https://i.stack.imgur.com/lmkQ7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lmkQ7.jpg" alt="enter image description here"></a></p>
  
  <p>To remove the roofs, I thought that maybe is possible detecting the color green in each region detected. If the region dont have 70% of green (for example) that region is deleted. How can I do that? How Can I detect only the green color of the image? </p>