Multiple object tracking in binary images
조회 수: 5 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (2개)
Bruno Pop-Stefanov
2013년 11월 22일
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!
Adrian
2013년 11월 26일
댓글 수: 1
Image Analyst
2013년 11월 26일
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.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!