How to use threshold in this problem?
1 回表示 (過去 30 日間)
古いコメントを表示
muhammad ismail
2015 年 1 月 23 日
コメント済み: Alessandro Masullo
2015 年 1 月 23 日
I convert this picture into bw using c=im2bw(b,graythresh(b)); but the problem is the straight line is disconnected as picture below. It supposed to be straight single line. What kind of segmentation technique that I need to use?

0 件のコメント
採用された回答
Alessandro Masullo
2015 年 1 月 23 日
Supposed your image varies from o to 1, you could use a threshold in this way:
THR = 0.5
above = image>=THR;
image(above) = 1;
image(~above) = 0;
6 件のコメント
Alessandro Masullo
2015 年 1 月 23 日
I just used imagesc(c). You can use different colormaps instead of the grey levels, use:
colormap jet
help colormap
その他の回答 (1 件)
Image Analyst
2015 年 1 月 23 日
Like I said in your duplicate post, you can use imclearborder() and bwareaopen(), though there are better ways like background correction.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Red についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!