Error in extracting Image GPS information using "imfinfo"

6 ビュー (過去 30 日間)
Abdul Hannan Qureshi
Abdul Hannan Qureshi 2024 年 4 月 5 日
Hi, I am working on infrared (IR) images. I am using "imfinfo" funtion for extraction of metadata from images. However, in some cases it is giving me error or not extracting complete information.
Picinfo1 = imfinfo('DJI_20230927144149_0001_T.JPG');
Picinfo2 = imfinfo('DJI_20230927144159_0002_T.JPG');
In case of succesful run, I am getting following information (including GPS coordinates):
(DJI_20230927144159_0002_T)
However, for few cases it is skipping GPS details in the image, and providing partial information, such as:
(DJI_20230927144149_0001_T.JPG)
but when i checked the image properties the GPS/ coordinates information is available.
How I can fix this issue and can extract GPS details from image (DJI_20230927144149_0001_T.JPG). I have attached both Images for referecne as well.
Thank you.

採用された回答

Anjaneyulu Bairi
Anjaneyulu Bairi 2024 年 4 月 15 日
Hi,
I understand that you are not getting GPS data while reading the Infrared images using "imfinfo" function. Even I am also not getting the GPS data and getting a warning while reading the DJI_20230927144149_0001_T.JPG. Attached the picture of warning here.
In the warning, it says the image contains zero entries at offset position 9339, so try to regenerate the image and apply the "imfinfo" function or try to save the image using GIMP editor. I saved the image using GIMP editor and It worked for me.
I hope this helps to resolve your query!
  1 件のコメント
Abdul Hannan Qureshi
Abdul Hannan Qureshi 2024 年 4 月 16 日
Thanks for response, it was a really tricky query. I have understood your point, I can't regenerate this image again but, I will try GIMP editor.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by