How to define XY coordinates are on left and right side
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Rik
el 15 de Abr. de 2020
Can anyone from Mathwork will help me to resolve this issue , thank you
Respuestas (1)
KSSV
el 14 de Abr. de 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 comentario
Ver también
Categorías
Más información sobre Detection en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!