필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
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.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, 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