Content deleted Content added
Copyeditting; quantization isn't an process on signals, per se, but the dimensions of the signal; added section on JPEG |
Refining compression application description; fixing math formula error; removing oversimplification of focus on zero values |
||
Line 7:
A common use of quantization is in the conversion of a [[continuous signal]] into a [[discrete signal]] by [[sample (signal)|sampling]] and then quantizing.
Both of these steps are performed in [[analog-to-digital converter]]s with the quantization level specified by a number of [[bit]]s.
A specific example would be [[compact disc]] (CD) audio which is sampled at 44,100 [[Hz]] and quantized with 16 bits (2 [[byte]]s) which can be one of 65,536 (<math>2^{16}</math>) possible values per sample.
The simplest and best-known form of quantization is referred to as [[scalar]] quantization, since it operates on scalar (as opposed to multi-dimensional [[vector]]) input data.
Line 38:
Because the human ear's perception of [[loudness]] is roughly logarithmic, this provides a higher signal to noise ratio over the range of audible sound intensities for a given number of bits.
==Quantization and Data Compression==
Quantization plays a major part in [[lossy data compression]]. Indeed, quantization can be viewed as the fundamental element that distinguishes [[lossy data compression]] from [[lossless data compression]], and the use of quantization is nearly always motivated by the need to reduce the amount of data needed to represent a signal.
One example of such lossy a compression scheme is [[JPEG]] compression.
During JPEG encoding, the data representing an image (typically 8-bits for each of three color components per pixel ___location) is processed using a [[discrete cosine transform]] and is then quantized and [[entropy encoding|entropy coded]].
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). Indeed, even the original representation using 24 bits per pixel requires quantization for its [[pulse-code modulation|PCM]] sampling structure.
Compression of other types of data (e.g., audio or video signals) follows very similar principles. For example, [[MP3]] audio coding also involves transformation followed by quantization followed by entropy coding. For video, one additional technique (called [[motion compensation]]) is typically employed in addition to the other elements.
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).
==See also==
|