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.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 3 Mär. 2017

0 Stimmen

"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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by