how to determine threshold value for separating target pixel in an image?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
mari pavithra
el 24 de Mzo. de 2015
Comentada: Image Analyst
el 29 de Mzo. de 2015
I need to perform target detection in an image for that I am having a target detection algorithm which performs some operation in each pixel and finally produces detector output d(t) for each pixel.Now I have to make following conditions if d(t) > threshold value,then the pixel is target otherwise the pixel is not target. My question is how to determine threshold value? Is there any method for determining threshold value?
0 comentarios
Respuesta aceptada
Image Analyst
el 24 de Mzo. de 2015
Try using my interactive thresholding app: http://www.mathworks.com/matlabcentral/fileexchange/29372-thresholding-an-image
You can take a histogram and try to think up some algorithm that works well. I think the triangle thresholding algorithm works well. graythresh(), which uses Otsu, works well if you have a clearly bimodal histogram with two large humps. Not so well otherwise.
Post a screenshot of your histogram. Attach your image.
2 comentarios
Image Analyst
el 29 de Mzo. de 2015
You need to tell your histogram routine to use more bins. Then I suggest you use the triangle thresholding method instead of Otsu, which is not good for this kind of image. A triangle method is here:
The triangle method will find the "corner" like around 0.01 or 0.02, whereas Otsu won't.
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!