bitmap size and file size
4 views (last 30 days)
Show older comments
Renjith V Ravi
on 3 Mar 2017
Commented: Walter Roberson
on 4 Mar 2017
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.
0 Comments
Accepted Answer
Walter Roberson
on 3 Mar 2017
"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 Comments
Walter Roberson
on 4 Mar 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.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!