Mapping Images taken at different gps codinates

조회 수: 4 (최근 30일)
Ngabire Mbabazi
Ngabire Mbabazi 2022년 11월 9일
답변: Suraj 2023년 5월 26일
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.

카테고리

Help CenterFile Exchange에서 Modify Image Colors에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by