How to use threshold in this problem?
Show older comments
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?

Accepted Answer
More Answers (1)
Image Analyst
on 23 Jan 2015
0 votes
Like I said in your duplicate post, you can use imclearborder() and bwareaopen(), though there are better ways like background correction.
Categories
Find more on Red in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
