0
$\begingroup$

I have an image of a leaf on a poorly white screen and need to find out just the leaf:

Leaf Image

The problem is that it contains greenish shadows, so simple color-based methods are not enough. Thus, I need some preprocessing to achieve an uniform background and to enhance important features. The goal is to delete undesired noise and distortions to apply an Expectation Maximization algorithm.

HSV Image Channels

I tried playing with OpenCV fastNlMeansDenoising, but it is not sufficient.

$\endgroup$
0

1 Answer 1

0
$\begingroup$

ChanVeseBinarize seems to do exactly what you're looking for:

Row[{img, ChanVeseBinarize[img], 
   HighlightImage[img, ChanVeseBinarize[img]]}]

enter image description here

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.