How to extract points coordinates from track point object?

6 ビュー (過去 30 日間)
Nazanin Safavian
Nazanin Safavian 2021 年 5 月 19 日
回答済み: Hrishikesh Borate 2021 年 5 月 25 日
Hi,
I have this line of code "tracks = findTracks(vSet)" which tracks points in multiple views and save it in tracks both the points coordinates and their viewid. I need to extract the points coordinate from the tracks object but I don't know how?!!! when I run tracks.points in workspace it will show each points coordinates in different images as s single matrix. somthing like this:
ans =
2×2 single matrix
1.0e+03 *
3.7766 1.8622
3.7599 1.8431
ans =
2×2 single matrix
1.0e+03 *
3.7776 2.1873
3.7574 2.2002
however, I need to extract all points in an array but I could't. btw the code is part of this implementation:
If anyone know how to do this please let me know. Thank you
Regards,

回答 (1 件)

Hrishikesh Borate
Hrishikesh Borate 2021 年 5 月 25 日
Hi,
It’s my understanding that you are trying to extract all the point coordinates from tracks into a single array. Following is the code for the same:-
allPoints = vertcat(tracks(1:end).Points);

カテゴリ

Help Center および File ExchangeFeature Detection and Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by