finding the exact thrreshold for im2bw

조회 수: 4 (최근 30일)
Mary Kodogianni
Mary Kodogianni 2011년 5월 31일
이동: Rena Berman 2023년 12월 29일
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?

답변 (3개)

Walter Roberson
Walter Roberson 2011년 5월 31일
There is no one algorithm: it depends on what you are interested in examining.
You might want to look at graythresh()
  댓글 수: 1
Mary Kodogianni
Mary Kodogianni 2011년 7월 14일
이동: Rena Berman 2023년 12월 29일
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..

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2011년 7월 14일
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 2011년 7월 14일
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