Multiple object tracking in binary images

5 views (last 30 days)
Adrian
Adrian on 22 Nov 2013
Commented: Image Analyst on 26 Nov 2013
Hello everyone,
I'm currently working on an image processing project. Here is the topic : I need to plot the centroid location as a function of time of different objects (human cells) from multipe images.
I binarise each images and identify the different patterns (using the bwlabel function). The centroids are obtained with the regionprops function. However, the objects are moving within the time so the labels are changing as well.
Once the first image has been labeled, I need to keep the same values (of the labels) for all the next images.
Here are two attached files, I hope it will be clearer. On the image "Objects1", the white circle is labeled as '1' but on the second one, it moved so the label changed (it's '2' now). Assuming that "Objects1" is the first image, I just need the circle to have the same label ('1') all the time.
I'm sorry if it's a bit confusing, I've been doing some research but couldn't find any answer.
Thanks!
Kind Regards,
Adrian

Answers (2)

Bruno Pop-Stefanov
Bruno Pop-Stefanov on 22 Nov 2013
Instead of using bwlabel, you could use bwconncomp to find your components and then label them yourself based on the number of pixels that each component contains. It would work if no two components have the same size. For example, if you identify the disk to have N pixels, then you can search through your list of components in each frame for a component of size N pixels and always label it 1. Good luck!
  1 Comment
Adrian
Adrian on 22 Nov 2013
It sounds like a good idea, I'll try this out!
Thanks :-)

Sign in to comment.


Adrian
Adrian on 26 Nov 2013
Hey,
I'm still struggling with this issue. Bruno's propositation looked good but it does not work actually. Maybe anyone has some other solutions?
Thanks!
  1 Comment
Image Analyst
Image Analyst on 26 Nov 2013
Why didn't it work? Are there two objects with the same number of pixels? If so you might have to look at other features such as perimeter length.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!