Is it possible to automatic find threshold value?

I'm using this code to segment the leaf, which use fixed thresholds that work very well for the first image, but it don't work for the second one.
Is it possible to analyse the image and find out the best thresholds to use?
Thank you!

Respuestas (1)

Stephen Devlin
Stephen Devlin el 8 de Jun. de 2018
Editada: Stephen Devlin el 8 de Jun. de 2018

0 votos

Hi Tarcisio,
Maybe this helps?
https://uk.mathworks.com/matlabcentral/answers/73864-histogram-thresholding-to-get-the-threshold-point

Categorías

Más información sobre Agriculture en Centro de ayuda y File Exchange.

Preguntada:

el 8 de Jun. de 2018

Editada:

el 8 de Jun. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by