How to use threshold in this problem?
显示 更早的评论
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?

采纳的回答
更多回答(1 个)
Image Analyst
2015-1-23
0 个投票
Like I said in your duplicate post, you can use imclearborder() and bwareaopen(), though there are better ways like background correction.
类别
在 帮助中心 和 File Exchange 中查找有关 Color and Styling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

