Color Quantization

In this post, we are going to talk about color quantization. Color quantization is a technique for reducing the number of used in an image and, as stated in Wikipedia “this is important for displaying images on devices that support a limited number of colors and for efficiently compressing certain kinds of images. This also leads to a less variance in the colors. In other terms, if we want that an image is made of just 5 colors, a color quantization technique analyzes the image pixel by pixel in order to fit those pixels in the range defined by the 5 colors and so, rearranging the image.

Read More

Histogram Comparison

In the previous post, we discussed about histograms and how to equilize images, in this post we are going to talk about how to compare histograms. Histogram Comparison is one of the oldest way of comparing images in order to classify them according to a reference image. The main core idea behind this technique is to “reduce” the image to a histogram representation and compare it with other image histograms by using a metric in order to provide a rank of similarity between to images.

Read More

Image Histogram

An Image histrogram represents the frequency of occurrence of each gray-level value. Since it plots the number of pixels for each tonal value, it can be analyzed for finding peaks and valleys. Image histograms are present on many modern digital cameras. Photographers can use them as an aid to show the distribution of tones captured, and whether image detail has been lost to blown-out highlights or blacked-out shadows. For istance, an 8-bit grayscale image there are 256 different possible intensities, and so the histogram will graphically display 256 numbers showing the distribution of pixels amongst those grayscale values.

Read More