How to link this blob sequential?
2 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155072/image.png)
Above the image is my task. In this task yellow rectangle is starting point and cofee color rectangle is end point. So i have to connect the each blob from yellow rectangle and reach the coffee rectangle through white path.
In this task now i have the centroids of the each blob. And i don't know after? how to connect the each blob from yellow reactangle.
My idea is drawing horizontal and vertical line from yellow reactangle centroid through white pixels and if these lines touches another boundry. Then we will connect these blobs centroid.
My doubt is how to draw horizontal and vertical line form one pixel(centroid) and check the color of each pixel in that line?
0 个评论
回答(1 个)
Image Analyst
2014-1-14
My answers were already given in your duplicate question http://www.mathworks.com/matlabcentral/answers/111680#comment_188935
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!