JPEG compression

时间:2020-01-23 14:35:15   收藏:0   阅读:87

The JPEG compression algorithm split the image into 8x8 blocks

技术分享图片

My thinking is that if we split an image into 8x8 blocks, feed each block to libjpeg and then merge the JPEG blocks into a lossless format(say PNG) , we should theoretically obtain the same JPEG if we had converted the original image directly into JPEG.However this isn‘t the case in practice.

Image used : https://drive.google.com/file/d/1ncp_gZ ... sp=sharing

Here is my code:

 

https://www.imagemagick.org/discourse-server/viewtopic.php?t=33298

原文:https://www.cnblogs.com/feng9exe/p/12230566.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!