How to fill missing pixels so that the line is connected?
3 次查看(过去 30 天)
显示 更早的评论
I would like to connect the two separated curves into one. So how can I fill the missing pixels?
Also, after using the Hough transform in detecting lines, how can I set those lines detected to zero in a binary image?
Any help
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147256/image.png)
0 个评论
采纳的回答
Image Analyst
2015-2-23
编辑:Image Analyst
2015-2-23
You can improve your segmentation algorithm. Or else just extract the two largest blobs with my attached utility. Then use find() to find the two points that are closest and use imline() to connect them by drawing a line. Demos for everything is attached. Feel free to adapt them.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!