Track the edge of a blob

5 Ansichten (letzte 30 Tage)
KuroWings
KuroWings am 3 Nov. 2021
Kommentiert: KuroWings am 9 Nov. 2021
Hello everyone!!.
I have the following problem, where I need to track these 2 blobs
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)
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
here is the view of the whole blob in its step 1 and 2
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!!!

Akzeptierte Antwort

Image Analyst
Image Analyst am 7 Nov. 2021
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 Kommentare
Image Analyst
Image Analyst am 9 Nov. 2021
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".
KuroWings
KuroWings am 9 Nov. 2021
imclose won't work because that would close all the little blobs that are present in some cases, due to the variability of their shapes.
edge linking sounds good, I will check it out, Thank you very much!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

yanqi liu
yanqi liu am 5 Nov. 2021
sir, the zip file contains 5 png file
what is the target? such as the right seperate?
  1 Kommentar
KuroWings
KuroWings am 7 Nov. 2021
Bearbeitet: KuroWings am 7 Nov. 2021
Hi, the goal is to follow the inner line, even if it breaks, in order to track the blob.
the zip file is an example where in image 5, blobs 1 and 2 are separated, and i just need to recognize that without using a conventional object detector like vision.BlobAnalysis

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by