Displaying image directly from a link to a MATLAB figure

조회 수: 5 (최근 30일)
Dimitrios
Dimitrios 2014년 5월 27일
답변: Hadi Salah 2022년 3월 5일
Is there a way to take an image directly from a link and insert it in a figure?
To be more clear an example follows:
A function with the form :
fun(latitude,longitude)
This function sould put in a figure an image of the area with the input latitude and longitude.It takes the data from google maps. Considering that the path of the link has the following form in google maps: ex.: https://www.google.com/maps/@55.3014235,10.9923162,7z where the first number the latitude,the second the longitude and the third(7z) the scale of the zoom.

답변 (2개)

shantanu
shantanu 2014년 5월 27일
Have you tried passing the Url to imread function?
'imread' can read an image from the given URL
you might have to do something like the pseudo code below in fun(latitude,longitude)
fun(latitude,longitude)
url= create a string of valid URL from latitude,longitude
img=imread(url);
imshow(img);
end
Hope this helps

Hadi Salah
Hadi Salah 2022년 3월 5일
fprintf('helleo')

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by