Effacer les filtres
Effacer les filtres

Mapping Images taken at different gps codinates

3 vues (au cours des 30 derniers jours)
Ngabire Mbabazi
Ngabire Mbabazi le 9 Nov 2022
Réponse apportée : Suraj le 26 Mai 2023
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.

Réponses (1)

Suraj
Suraj le 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.

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by