引用:
	
	
		
			
				
					作者:  ajn25953
					 
				 
				现在将一幅图片进行了压缩,想知道用什么函数可以求出图片的大小,以确定压缩前后图片大小的变化,得出压缩比。 
			
		 | 
	
	
 Rafael C. Gonzalez's 
Digital Image Processing Using Matlab    page 21
K=imfinfo('xxx.jpg');
image_bytes=K.Width*K.Height*K.BitDepth/8;
compressed_bytes=K.FileSize;
compression_ratio=image_bytes/compressed_bytes %no ; here to get the result. 
Read the book