필터 지우기
필터 지우기

How to link this blob sequential?

조회 수: 1 (최근 30일)
saravanakumar D
saravanakumar D 2014년 1월 14일
댓글: saravanakumar D 2014년 1월 15일
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?

답변 (1개)

Image Analyst
Image Analyst 2014년 1월 14일
My answers were already given in your duplicate question http://www.mathworks.com/matlabcentral/answers/111680#comment_188935
  댓글 수: 1
saravanakumar D
saravanakumar D 2014년 1월 15일
I read that answer. But i think This is not have two walls. So this is not perfect maze. I just want to store the blob name in one array which are in path to reach end. Ouput i want is [Rectange,circle,hexagone,triangle,circle,rectangle]
Now i have centroid of all the blobs. But i don't know how connnect the blob continuously

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by