- Quantization (image processing)
**Quantization**, involved inimage processing , is alossy compression technique achieved by compressing a range of values to a single quantum value. When the number of discrete symbols in a given stream is reduced, the stream becomes more compressible. For example, reducing the number of colors required to represent a digitalimage makes it possible to reduce its file size. Specific applications include DCT data quantization inJPEG and DWT data quantization inJPEG 2000 . __FORCETOC__**Color quantization**Color quantization reduces the number of colors used in an image; this is important for displaying images on devices that support a limited number of colors and for efficiently compressing certain kinds of images. Most bitmap editors and many operating systems have built-in support for color quantization. Popular modern color quantization algorithms include the nearest color algorithm (for fixed palettes), the

median cut algorithm , and an algorithm based onoctree s.It is common to combine color quantization with dithering to create an impression of a larger number of colors and eliminate banding artifacts.

**Frequency quantization for image compression**The human eye is fairly good at seeing small differences in

brightness over a relatively large area, but not so good at distinguishing the exact strength of a high frequency brightness variation. This fact allows one to get away with a greatly reduced amount of information in the high frequency components. This is done by simply dividing each component in the frequency domain by a constant for that component, and then rounding to the nearest integer. This is the main lossy operation in the whole process. As a result of this, it is typically the case that many of the higher frequency components are rounded to zero, and many of the rest become small positive or negative numbers.**Quantization matrices**A quantization matrix is used in combination with a DCT coefficient matrix to carry out the previously mentioned transformation. Quantization matrices are often specifically designed to keep certain frequencies in the source to avoid losing image quality. Many video encoders, such as

Xvid ,3ivx andH.264/AVC allow custom matrices to be used.This is an example DCT coefficient matrix:

:$egin\{bmatrix\}\; -415\; -33\; -58\; 35\; 58\; -51\; -15\; -12\; \backslash \; 5\; -34\; 49\; 18\; 27\; 1\; -5\; 3\; \backslash \; -46\; 14\; 80\; -35\; -50\; 19\; 7\; -18\; \backslash \; -53\; 21\; 34\; -20\; 2\; 34\; 36\; 12\; \backslash \; 9\; -2\; 9\; -5\; -32\; -15\; 45\; 37\; \backslash \; -8\; 15\; -16\; 7\; -8\; 11\; 4\; 7\; \backslash \; 19\; -28\; -2\; -26\; -2\; 7\; -44\; -21\; \backslash \; 18\; 25\; -12\; -44\; 35\; 48\; -37\; -3end\{bmatrix\}$

A common quantization matrix is:

:$egin\{bmatrix\}\; 16\; 11\; 10\; 16\; 24\; 40\; 51\; 61\; \backslash \; 12\; 12\; 14\; 19\; 26\; 58\; 60\; 55\; \backslash \; 14\; 13\; 16\; 24\; 40\; 57\; 69\; 56\; \backslash \; 14\; 17\; 22\; 29\; 51\; 87\; 80\; 62\; \backslash \; 18\; 22\; 37\; 56\; 68\; 109\; 103\; 77\; \backslash \; 24\; 35\; 55\; 64\; 81\; 104\; 113\; 92\; \backslash \; 49\; 64\; 78\; 87\; 103\; 121\; 120\; 101\; \backslash \; 72\; 92\; 95\; 98\; 112\; 100\; 103\; 99end\{bmatrix\}$

Using this quantization matrix with the DCT coefficient matrix from above results in:

:$egin\{bmatrix\}\; -26\; -3\; -6\; 2\; 2\; -1\; 0\; 0\; \backslash \; 0\; -3\; 4\; 1\; 1\; 0\; 0\; 0\; \backslash \; -3\; 1\; 5\; -1\; -1\; 0\; 0\; 0\; \backslash \; -4\; 1\; 2\; -1\; 0\; 0\; 0\; 0\; \backslash \; 1\; 0\; 0\; 0\; 0\; 0\; 0\; 0\; \backslash \; 0\; 0\; 0\; 0\; 0\; 0\; 0\; 0\; \backslash \; 0\; 0\; 0\; 0\; 0\; 0\; 0\; 0\; \backslash \; 0\; 0\; 0\; 0\; 0\; 0\; 0\; 0end\{bmatrix\}$

For example, using −415 (the DC coefficient) and rounding to the nearest integer

:$mathrm\{round\}left(\; frac\{-415\}\{16\}\; ight)=mathrm\{round\}left(\; -25.9375\; ight)=-26$

*Wikimedia Foundation.
2010.*

### Look at other dictionaries:

**Quantization (signal processing)**— In digital signal processing, quantization is the process of approximating a continuous range of values (or a very large set of possible discrete values) by a relatively small set of discrete symbols or integer values.More specifically, a signal… … Wikipedia**Image processing**— is any form of signal processing for which the input is an image, such as photographs or frames of video; the output of image processing can be either an image or a set of characteristics or parameters related to the image. Most image processing… … Wikipedia**Comparison of image processing software**— The following table provides a comparison of image processing software. Functionality Matlab*[1] Mathematica[2] imageJ FIJI (software) Population Extract alpha channel No … Wikipedia**Quantization**— is the procedure of constraining something from a continuous set of values (such as the real numbers) to a discrete set (such as the integers). Quantization in specific domains is discussed in:* Quantization (signal processing) ** Quantization… … Wikipedia**Image compression**— is the application of Data compression on digital images. In effect, the objective is to reduce redundancy of the image data in order to be able to store or transmit data in an efficient form.Image compression can be lossy or lossless. Lossless… … Wikipedia**Image noise**— Noise clearly visible in an image from a digital camera Image noise is random (not present in the object imaged) variation of brightness or color information in images, and is usually an aspect of electronic noise. It can be produced by the… … Wikipedia**Color quantization**— An example image in 24 bit RGB color The same image reduced to a palette of 16 colors specifically chosen to best represent the image; the selected palette is shown by the squares above In … Wikipedia**Digital signal processing**— (DSP) is concerned with the representation of discrete time signals by a sequence of numbers or symbols and the processing of these signals. Digital signal processing and analog signal processing are subfields of signal processing. DSP includes… … Wikipedia**Signal processing**— is an area of systems engineering, electrical engineering and applied mathematics that deals with operations on or analysis of signals, in either discrete or continuous time. Signals of interest can include sound, images, time varying measurement … Wikipedia**Graphics processing unit**— GPU redirects here. For other uses, see GPU (disambiguation). GeForce 6600GT (NV43) GPU A graphics processing unit or GPU (also occasionally called visual processing unit or VPU) is a specialized circuit designed to rapidly manipulate and alter… … Wikipedia