How to get smooth straight line in binary(im2bw)?

1 view (last 30 days)
How to get smooth straight line in the middle of this picture in binary(bw). I try using c=im2bw(b,graythresh(b)); but it become rough line. Need straight line as actual image in binary(bw). Thank you.

Answers (1)

Image Analyst
Image Analyst on 22 Jan 2015
How about using imline()? Or houghlines() or hough()?

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!