bitmap size and file size
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Renjith V Ravi
am 3 Mär. 2017
Kommentiert: Walter Roberson
am 4 Mär. 2017
When I run the code shown in the link http://in.mathworks.com/matlabcentral/fileexchange/13584-compression-ratio, i got the output
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161307/image.png)
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 3 Mär. 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 Kommentare
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!