How can I convert known GPS coordinates to image pixels, and again image pixels to world GPS coordinates?
Show older comments
Answers (1)
Ahmet Cecen
on 12 Dec 2016
A simple start would be to get any two points:
dx = abs(point2gpsx - point1gpsx)/abs(point2imagex - point1imagex)
So by using a simple ratio, find how long a single pixel is in the x direction in GPS coordinates. Repeat for y direction. Then you can calculate the edges of the image in GPS coordinates, then use a meshgrid to get the coordinates for the rest.
Categories
Find more on Automated Driving Toolbox 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!