Track the edge of a blob
조회 수: 11 (최근 30일)
이전 댓글 표시
Hello everyone!!.
I have the following problem, where I need to track these 2 blobs
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/787795/image.png)
the point is that it is an iterative and extremely variable problem.
SO
things like this could happen (when it could lose blob 1, losing a little but not all of its contour)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/787800/image.png)
So I'm looking for a tracking method that doesn't rely on detecting specific objects.
If I could track edges that would be awesome.
Here is an example of 2 consecutive images
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/787805/image.png)
here is the view of the whole blob in its step 1 and 2
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/787810/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/787815/image.png)
In other words, I only need to recognize when these 2 blobs (borders) are "inside" the large border.
specifically when the boundary between them is broken
if someone could give me some guidance it would be great!!!
Many thanks in advice!!!
댓글 수: 0
채택된 답변
Image Analyst
2021년 11월 7일
Look into bwboundaries() -- it will show you what boundaries are nested inside other boundaries. Or you can use inpolygon() to determine if a point is inside a polygon.
댓글 수: 3
Image Analyst
2021년 11월 9일
If your boundaries are broken, you can try to connect them using imclose(). Your image is of very low resolution and imclose will change the shape a little bit (of course it has to if it's going to close that gap).
Otherwise you can look at more sophisticated techniques like "edge linking".
추가 답변 (1개)
yanqi liu
2021년 11월 5일
sir, the zip file contains 5 png file
what is the target? such as the right seperate?
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!