how to determine threshold value for separating target pixel in an image?

1 回表示 (過去 30 日間)
mari pavithra
mari pavithra 2015 年 3 月 24 日
コメント済み: Image Analyst 2015 年 3 月 29 日
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?

採用された回答

Image Analyst
Image Analyst 2015 年 3 月 24 日
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 件のコメント
mari pavithra
mari pavithra 2015 年 3 月 29 日
編集済み: mari pavithra 2015 年 3 月 29 日
sorry for late reply,I completed my entire program just now only.Here's the histogram of my output.
when I used graythresh function,I got 0.0588 as my threshold but my accuracy is poor.Is there any method to determine threshold value as 0 or 0.02(accurately)?
Image Analyst
Image Analyst 2015 年 3 月 29 日
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.

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by