Trouble modifying Motion-Based Multiple Object Tracking to calculate velocities of each object
6 ビュー (過去 30 日間)
古いコメントを表示
I am trying to modify displaytrackingresults method from the Motion-Based Multiple Object Tracking sample - I am trying to iterate through the ids of reliabletracks array to get each id and bboxes array to get the x, y of the centroid of each track, but I am only able to get 1 element, instead of all one by one for the frame.
Also, I encounter a matrix index out of bounds error when I try to access data for the previous frame from a structure that I have used to try and store data for each id in every frame.
How do I check the struct to see if a particular id exists in the previous frame before trying to access it so I don't get index errors? Any help will be greatly appreciated.
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!