- 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
조회 수: 4 (최근 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.
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Modify Image Colors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!