Plotting image over map
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hey everyone,
I have a few maps as images that I'd like to plot a ships gps track ontop of. I've attached such a map. Does anyone have any suggestions on how I first anchor this to a GPS coordinate? I'm currently plotting via image(imread('test.png')) which means I have number of pixels on the x and y axis.
I'm not asking anyone to do this for me, I am fairly competent in Matlab, I just need to be pointed in the right direction. FYI: I do have the mapping toolbox.
Thanks! Trevor
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160354/image.png)
0 Commenti
Risposte (1)
Kelly Kearney
il 2 Feb 2017
You'll need to georeference the image. You might be able to do this automatically on import if the image already has that info attached to it (e.g. geotiffread). Otherwise, the Mapping Toolbox provides a few different functions for this, such as georefcells. Once you have a reference vector or reference matrix for your image, you can plot it to a map axis using geoshow, pcolorm, etc.
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!