Mapping Images taken at different gps codinates

3 次查看(过去 30 天)
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.

回答(1 个)

Suraj
Suraj 2023-5-26
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.

标签

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by