フィルターのクリア

Corrupt Image

10 ビュー (過去 30 日間)
Ron Lewis
Ron Lewis 2012 年 2 月 23 日
回答済み: Sergio 2023 年 1 月 17 日
What does this warning mean:
Warning: The image file directory at offset position 38 has zero entries and has been ignored. The file may be corrupt.
The warning is issued when an image(jpg) is read.

採用された回答

John
John 2012 年 2 月 24 日
When IMFINFO encounters a JPEG file, it will try to determine if the JPEG has exif metadata, which is stored in the APP1 segment of the JPEG and has the same structure as TIFF metadata.
It would seem that IMFINFO detected the setup for exif in the APP1 segment, but then no tags were actually found.

その他の回答 (4 件)

Walter Roberson
Walter Roberson 2012 年 2 月 23 日
The error would make more sense to me if it was a TIFF file instead of JPEG.
Is the file possibly JPEG 2000 rather than basic JPEG? If so, which MATLAB version are you using?
Which MATLAB command are you using to read the file?
Do other programs have difficulty reading the file?
  3 件のコメント
Walter Roberson
Walter Roberson 2012 年 2 月 23 日
Does imread() also display the warning?
Interestingly, the other hits I see on this topic also involve offset 38. There was no explanation for the cause in the other questions about it.
The other questions dated from 2004. Is your MATLAB version quite old perhaps?
Vlad Atanasiu
Vlad Atanasiu 2015 年 5 月 3 日
I had this problem when saving an image from Photoshop. I solved it by opening and saving the image with Illustrator. (R2014b)

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


Siddha Nagasai
Siddha Nagasai 2015 年 5 月 21 日
編集済み: Walter Roberson 2015 年 5 月 21 日
i also got the same warning with the number 20 where my dataset size is 30 images and my matlab version is matlab R2010a
what should i do to get rid of this warning...????please tell me fast...

Vrushali Lanjewar
Vrushali Lanjewar 2020 年 12 月 4 日
編集済み: Vrushali Lanjewar 2020 年 12 月 4 日
When I run the LSTM example while Displaying images in dataset with 20 classes containing more than 1000 images and I assigned
numImages=100; then it gives warning ; That meas we are assigning less number of images
whereas
when I assigned again
numImages=1000 ; then program run successfully...
You need to check the number of images in dataset before assigning a variable.

Sergio
Sergio 2023 年 1 月 17 日
I solved it by opening and saving again the images with a web image editor, in my case i used pixlr, but i guess more editors will work.

カテゴリ

Help Center および File ExchangeInternationalization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by