comprsn-ratio.m
来自「How to find compression ratio of image f」· M 代码 · 共 14 行
M
14 行
K=imfinfo ('skull-50.jpg');
L=imfinfo ('skull-50.jpg');
M=imfinfo ('skull-50.jpg');
image_bytes=K.Width*K.Height*K.BitDepth/8
compressed_bytes_K=K.FileSize
image_bytes=L.Width*L.Height*L.BitDepth/8
compressed_bytes_L=L.FileSize
image_bytes=M.Width*M.Height*M.BitDepth/8
compressed_bytes_M=M.FileSize
compression_ratio=image_bytes/compressed_bytes
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?