How to define XY coordinates are on left and right side
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Rik
il 15 Apr 2020
Can anyone from Mathwork will help me to resolve this issue , thank you
Risposte (1)
KSSV
il 14 Apr 2020
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.
1 Commento
Vedere anche
Categorie
Scopri di più su Vehicle Scenarios in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!