How to define XY coordinates are on left and right side
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am working for the radar locations , where i have azimuth angles for each objects, with the help of this i am able to partially define the locations are on left/right side during straight road but unable to define it when there are sharp curve roads.
could you please do help me out to separate the above attached .mat file with XY coordinates belogn on Left/Right side ?
3 件のコメント
Rik
2020 年 4 月 15 日
Can anyone from Mathwork will help me to resolve this issue , thank you
回答 (1 件)
KSSV
2020 年 4 月 14 日
Follow the below steps.
- Pick a point (x,y) from the set of points.
- Using knnsearch get N number of points close to the (x,y) in trajectory points.
- Using polyfit, fit a striaght line with the N points.
- Use this: https://math.stackexchange.com/questions/324589/detecting-whether-a-point-is-above-or-below-a-slope. To know whether point is abive or below the given line.
This is the mehtod which I think shall work. There might be more elegant methods.
参考
カテゴリ
Help Center および File Exchange で Detection についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!