How to define XY coordinates are on left and right side
4 views (last 30 days)
Show older comments
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 Comments
Rik
on 15 Apr 2020
Can anyone from Mathwork will help me to resolve this issue , thank you
Answers (1)
KSSV
on 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 Comment
See Also
Categories
Find more on Detection in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!