How to I get a threshold value from looking at histogram
Mostrar comentarios más antiguos
I need to get a threshold value not by looking at the graph I was told there is a way to calculate the threshold value from the histogram, Can someone help me
2 comentarios
Youssef Khmou
el 29 de Mzo. de 2015
what is the purpose of this threshold ?
Chok Chuan
el 29 de Mzo. de 2015
Editada: Chok Chuan
el 29 de Mzo. de 2015
Respuestas (1)
Youssef Khmou
el 29 de Mzo. de 2015
Otsu's method exists as built in function with name graythresh, here is an example taken from Mathworks help page :
I = imread('coins.png');
level = graythresh(I);
BW = im2bw(I,level);
there might be other techniques to choose an adequate threshold.
Categorías
Más información sobre Histograms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!