finding moving direction of object?
7 ビュー (過去 30 日間)
古いコメントを表示
according to diagram, i have an object in time 't' with a special position and in 't+1' in which it moved to another position, how can I find the moving direction? these spot (blue and red) are an object in two binary images (time 't' and 't+1')
0 件のコメント
採用された回答
Thorsten
2014 年 12 月 15 日
If the object has position (x1, y2) at time t and (x2, y2) at time t+1, it moved in the direction (x2 - x1, y2 -y1).
4 件のコメント
Thorsten
2014 年 12 月 16 日
In general you should start a new question if you have a new question. In this case I answer it anyway: Draw an arrow from P1 to P2, google it if you don't know how to draw arrows in Matlab; and the values you get could be positive or negative... That gives you some idea how to define a direction as positive or negative :-)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Object Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!