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.
댓글 수: 0
채택된 답변
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
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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!