Image Processing Best Way - To extract Only Disease Leaf part

asked 2016-04-28 22:22:53 -0600

Hi. Using opencv, what's the better way to extract of leaf image only disease part? By color segmentation, texture, etc?

For exemple: I do not want the green part of leaf (isolating), only internal yellow(disease). This resultant part (with disease) would be in a background black.

Thank's

edit retag flag offensive close merge delete

Comments

As a first approach, you should use color segmentation. Texture analysis can be a good solution, but only if you know what are you doing. It's also harder to implement (as it's not part of OpenCV).

So transform the image to HSV color space and use inRange to get the yellow part.

kbarni gravatar imagekbarni ( 2016-04-29 02:35:11 -0600 )edit

thank you so much kbarni.

marcelomg21 gravatar imagemarcelomg21 ( 2016-04-29 10:39:16 -0600 )edit