- Create Common Plots over Basemap Images - MATLAB & Simulink (mathworks.com)
- How do I add an image on a map? - MATLAB Answers - MATLAB Central
Mapping Images taken at different gps codinates
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
clc, clear all
% creating and adding path of the image file to matlab
% addpath('../Users/ngabirembabazi/desktop/data');
% cd = ('../Users/ngabirembabazi/desktop/data');
datapath = '/Users/ngabirembabazi/Desktop/Data';
list = dir(datapath);
% sizing the images
[m, n] = size(list);
Images = {};
figure;
% reading and showing the images we got from the files
for i = 3:m
imTmp = imread(list(i).name);
imInfoTmp = imfinfo(list(i).name); % extracting the infomationof the images
Images{end+1} = imTmp;
% imshow(imTmp);
% trying to show image on grid in georeference
% hold on
% info = imfinfo(imTmp);
geoshow(imInfoTmp.GPSInfo.GPSLatitude,imInfoTmp.GPSInfo.GPSLongitude,'DisplayType','image');
pause(0.7);
% imshow(imTmp);
end
% get metadata from image file
% info = imfinfo(imTmp);
imgrid = (imTmp ('grid-im.jpg'));
figure
imshow(imTmp)
hold on
worldmap("United States")
hold off
% Create grid-image
% worldmap('ohio')
% imgrid = (imTmp ('grid-im.jpg'));
% % imshow(imTmp)
% disp(imgrid)
With this code I have been trying to map the images i have in the data path I added. I was able to create the video of images, but I want to map the images to their gps codinates.
0 Kommentare
Antworten (1)
Suraj
am 26 Mai 2023
Hi Ngabire
I understand that you want to plot your images on a map using the GPS co-ordinates of each image.
Here are a few resources that might help -
Please have a look at the above links. Hope this helps.
Regards,
Suraj.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Mapping Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!