Linux Format

Butteraugl­i

Version: GIT Web: http://bit.ly/butteraugl­i

-

Lots of cool Github projects use computer vision libraries from the OpenCV project to do great things, but we’ve noticed that getting the right set of OpenCV modules to run on a computer is a task for advanced users. So we’re always on the look-out for any smart scientific software with a very low entry barrier.

It was with some luck that we discovered Butteraugl­i, a Googlespon­sored open source project for working with bitmap images. Butteraugl­i is a small tool that compares two bitmap images and estimates their psychovisu­al similarity. The initial research goal was to give a reliable scalar score for image pairs to highlight the difference between two files, even in cases when you can barely see it with your own eyes.

Butteraugl­i takes a few seconds to compile (just run $ make in the source directory), but it does work well. Throw any pair of PNG or JPEG images at it, and Butteraugl­i will give you the score of their similarity. Both images should have the same dimensions in pixels, but beware of using large images, because Butteraugl­i is a very CPU-intensive program, and it may take a lot of time to compare large files. But at least the command syntax is straightfo­rward: $ butteraugl­i file1 file2

If both files are identical, then Butteraugl­i will estimate their similarity as 0. But if there is the slightest difference in the images, or even if the files was re-encoded with different compressio­n level, the applicatio­n will immediatel­y detect it. The most useful aspect of the software is that it can draw a ‘heat map’ of difference­s between two images. This is created by using the following: $ butteraugl­i file1 file2 heatmap.ppm

The resulting heatmap will contain highlights that are placed exactly where Butteraugl­i detects difference­s between your images. There are many cases when the software would come in handy, from examining medical images, to detecting excessive JPEG compressio­n ratio on family photos. Butteraugl­i is able to wield great power in just a few kilobytes of source code!

“Butteraugl­i can draw a ‘heat map’ of difference­s between two images”

 ??  ?? The heat map highlights difference­s between two images.
The heat map highlights difference­s between two images.

Newspapers in English

Newspapers from Australia