How do I compare overlap of each blob in first frame with every blob in the next frame and then save the corresponding pair?
2 ビュー (過去 30 日間)
古いコメントを表示
Prachi Sharma
2016 年 10 月 26 日
コメント済み: Prachi Sharma
2016 年 11 月 3 日
So,this is the image below.Every frame having two blobs as you can see.Now,firstly I want to compare overlap of each blob in first frame with each blob in second frame and then save the corresponding matched pair.I need to repeat this for every blob and between every two consecutive frames.I am new to tracking objects.How do I do this?
0 件のコメント
採用された回答
Mohammad Haghighat
2016 年 10 月 26 日
One solution can be by creating a mask using the first frame and applying it to the second frame.
In order to create the mask you just need to assign the value of 1 to the blob in the first frame and the rest of the frame should be 0. Now you can apply the mask simply by a pixel to pixel multiplication (mask.*frame2). The resulting image will be the overlap of the blob in the second frame.
Using a loop, you can repeat this process for every two consecutive frames.
その他の回答 (0 件)
参考
カテゴリ
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!