When I run the code shown in the link http://in.mathworks.com/matlabcentral/fileexchange/13584-compression-ratio, i got the output
Among these what is the difference between ' FileSize ' and ' BitmapSize ' .How this FileSize is calculated here. The formula for compression ratio is also here.

 채택된 답변

Walter Roberson
Walter Roberson 2017년 3월 3일

0 개 추천

"How this FileSize is calculated here."
Record the output of dir() of the file. Access the "bytes" field of the result.
"' BitmapSize '"
Bitmapsize is Height time Width.
"The formula for compression ratio is also here."

댓글 수: 3

Renjith V Ravi
Renjith V Ravi 2017년 3월 4일
Is there any unit for the ' FileSize ' in above example
Walter Roberson
Walter Roberson 2017년 3월 4일
Bytes.
Walter Roberson
Walter Roberson 2017년 3월 4일
Note that for compression calculations you need to know the number of channels per pixel and the number of bits per channel per pixel.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by