Coder Social home page Coder Social logo

unblock's Introduction

UnBlock

Remove 8x8-pixel "blocky" artifacts from a heavily compressed JPEG image.

How to build on Ubuntu

make

How to run

./unblock in.bmp out.bmp

./unblock in.png out.png

Software used

This is a wrapper around an algorithm by John Costella. His webpage includes before-and-after pictures showing the algorithm's effectiveness.

Instead of porting John's C# source code to C/C++, I built on Alexander Balakhnin's C port, in the context of a plugin for AviSynth, based on John's own 2007 C port of "the Costella libraries."

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 article Stitched Panoramas from Toy Airborne Video Cameras (arXiv:1311.6500 [cs.CV]) demonstrates an application of this software. A summary of this article is published in the MIT Technology Review.

Bugs

An image whose width is not a multiple of 16 pixels may misbehave.

unblock's People

Contributors

camilleg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.