What the imfinfo function of matlab return size of compressed or uncompressed image?

2 ビュー (過去 30 日間)
anu
anu 2016 年 8 月 25 日
コメント済み: anu 2016 年 8 月 26 日
I imfinfo function of the matlab return the size of image in bytes. I want to know whether it returns size of the compressed or uncompressed jpeg image?

採用された回答

Walter Roberson
Walter Roberson 2016 年 8 月 25 日
The FileSize field it returns is the size of the file on disk. If you want to know the size of the uncompressed JPEG image you can multiply Width times Height times BitDepth and divide by 8
  3 件のコメント
Image Analyst
Image Analyst 2016 年 8 月 25 日
Yes. When it's on disk, it's compressed. It only gets decompressed after you call imread() which reads it from disk, uncompresses it, and places it into the variable you specified.
anu
anu 2016 年 8 月 26 日
Thank you very much

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by