Content deleted Content added
Refining compression application description; fixing math formula error; removing oversimplification of focus on zero values |
→Quantization and Data Compression: Quantization is not always the fundamental difference; removed digression on similiaries of compression schemes |
||
Line 39:
==Quantization and Data Compression==
Quantization plays a major part in [[lossy data compression]].
In some In some compression schemes, like [[MP3]] or [[Vorbis]], compression is also achieved by selectively discarding information and so quantization is not always the fundamental difference between lossy and lossless.
One example of such lossy a compression scheme is [[JPEG]]
During JPEG encoding, the data representing an image (typically 8-bits for each of three color components per pixel
By reducing the precision of the transformed values using quantization, the number of bits needed to represent the image can be reduced substantially.
For example, images can often be represented with acceptable quality using JPEG at less than 3 bits per pixel (as opposed the the typical 24 bits per pixel needed prior to JPEG compression). Even the original representation using 24 bits per pixel requires quantization for its [[pulse-code modulation|PCM]] sampling structure. In modern compression technology, the [[information entropy|entropy]] of the output of a quantizer matters more than the number of possible values of its output (the number of values being <math>2^M</math> in the above example).
|