bitmap size and file size

6 次查看(过去 30 天)
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
"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 个评论
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 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by