How do I read in GPS information from EXIF data in geotagged JPEG images?

I have a bunch of geotagged JPEG images, and want to read the GPS information from the EXIF data into the MATLAB workspace. Both exifread() and imfinfo() do not return this information, though most other information is returned.
Does anyone have any tips on how I should go about doing this?

댓글 수: 3

Dustin, I was able to get this info via the "GPSInfo" field in IMFINFO output. I used a JPEG file from my phone. Could you share you image online? (dropbox..etc?).
Thanks a lot, Ashish. I just missed seeing the structure, while looking for the GPSLatitude and GPSLongitude fields.
In the meantime, I used a workaround (if that's what you can call it). I used exiftool to export all the EXIF data to a text file, and then used textscan to read in and parse the required fields.
Dustin, you can 'accept' your own answer too :)

댓글을 달려면 로그인하십시오.

 채택된 답변

Dustin
Dustin 2011년 8월 2일

1 개 추천

As mentioned by Ashish in the above comment, imfinfo returns a GPSInfo structure containing the required data.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2011년 7월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by