Remove 8x8-pixel "blocky" artifacts from a heavily compressed JPEG image.
How to build on Ubuntu
How to run
./unblock in.bmp out.bmp
./unblock in.png out.png
This is a wrapper around an algorithm by John Costella. His webpage includes before-and-after pictures showing the algorithm's effectiveness.
Files in .bmp format are read and written by EasyBMP,
files in .png format by libpng.
Why not .jpg for a JPEG utility?
Because my source images are still frames from mjpeg-format video.
Extracting frames in a lossless format avoids the further degradation that happens with
ffmpeg -i in.avi -vcodec jpg ....
The journal article Stitched Panoramas from Low-Cost Airborne Video Cameras demonstrates an application of this software. A preprint thereof is summarized in the MIT Technology Review.
An image whose width is not a multiple of 16 pixels may misbehave.