Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to avoid compreesion artifacts on segmentation?

I am using OpenCV EM to segment a image on the HSV domain. Therefore, the segmentation detect some false positives [Highlights in Yellow]. Below, you can see.

Example

Therefore, I tried to use threshold to remove them without success as showing in the described attachment. I got the better result with THRESH_TOZERO_INV; however, I lost part of the leaf.

image description

Any help on how to keep only the Leaf without false positives?