Effacer les filtres
Effacer les filtres

finding the exact thrreshold for im2bw

3 vues (au cours des 30 derniers jours)
Mary Kodogianni
Mary Kodogianni le 31 Mai 2011
Déplacé(e) : Rena Berman le 29 Déc 2023
Hello to everyone, i'm trying to convert an image to logical,so i have to find a threshold for im2bw, but i don't know which is the right algorithm to do this?

Réponses (3)

Walter Roberson
Walter Roberson le 31 Mai 2011
There is no one algorithm: it depends on what you are interested in examining.
You might want to look at graythresh()
  1 commentaire
Mary Kodogianni
Mary Kodogianni le 14 Juil 2011
Déplacé(e) : Rena Berman le 29 Déc 2023
I want to convert an image with gaussian spots to binary and find the coordinates of the gaussians but i don't know wich threshold to use..

Connectez-vous pour commenter.


Image Analyst
Image Analyst le 14 Juil 2011
You might be interested in a visual/interactive GUI to allow you to pick a threshold: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Sean de Wolski
Sean de Wolski le 14 Juil 2011
It is calculated from the range of the class(im)
range = getrangefromclass(A);
BWp = (A > range(2) *level);
Is the engine: So for example:
range = getrangefromclass(uint8(magic(3)));
level = 0.75;
range(2) *level
ans =
191.25
>>

Community Treasure Hunt

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

Start Hunting!

Translated by