Hello Nifissa,

Otsu's method assumes two classes and thus a bimodal histogram, and
calculates the optimal threshold based on that assumption. You can find
more information about the method here
<https://en.wikipedia.org/wiki/Otsu%27s_method>. I have used it
successfully for binary classification problems. If you are unsure of which
method to use for binarizing the image you can try a python function
<http://scikit-image.org/docs/dev/auto_examples/segmentation/plot_thresholding.html>
that does exactly that. Hope that helps :-)

Liten

On Mon, Apr 1, 2019 at 9:06 AM Nafissa Sfaksi <[email protected]> wrote:

> Hello every body,
>
> I have several images taken under different conditions (incdence angle,
> soil moisture, cloud cover... ) and I want to classify the images in 3
> classes using a threshold function.
>
> As my images are taken in different seasons, i want to use otsu Methode to
> find the most adequate treshold.
>
> I saw that OTB software C++ used the itk library to process the
> thresholding. but i dont find the function in the OTB application.
>
> Is it possible to help me finding the function or how to call it in a
> python script (I do not use c++, I am not an advenced user!)
>
> Thank you for any help.
> Best regards
>
> Nafissa
>
> --
> This mailing will be abandoned soon in favor of a more friendly forum:
> https://forum.orfeo-toolbox.org
> Thanks to visit it for any question related to Orfeo Toolbox (OTB) usage,
> or to check the OTB FAQ:
> http://www.orfeo-toolbox.org/FAQ.html
> ---
> You received this message because you are subscribed to the Google Groups
> "otb-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing will be abandoned soon in favor of a more friendly forum:
https://forum.orfeo-toolbox.org
Thanks to visit it for any question related to Orfeo Toolbox (OTB) usage, or to 
check the OTB FAQ:
http://www.orfeo-toolbox.org/FAQ.html
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to