Javatpoint Logo
Javatpoint Logo

Quantization

Quantization is a process to convert the continuous analog signal to the series of discrete values. A quantizer is a device known to perform the quantization process. The function of quantizer is to represent each level to the fixed discrete finite set of values.

The signals during transmission over long distances suffer from noise and interference. To overcome this, the quantization process creates a signal that is approximately equal to the message signal. It selects a quantized signal mq(t) with values nearest to the original analog signal m(t). The quantization process selects a value and rounds off these values to the nearest stabilized value. The quantized signal mq(t) can get easily separable from the additive noise.

Let's consider an example of the analog signal confined to the range VA to VB, as shown below:

Quantization

Quantization creates a series of discrete value from the analog signal. It separates the analog signal into N number of discrete sets. Each set has an equal size of S, which refers to the step size. It is given by:

S = (VB - VA)/N

Where,

S is the step size

VB is the upper limit of the given analog signal

VA is the lower limit of the given analog signal

N is the number of sets in which the analog signal range is divided

Here,

N = 8

The quantization levels are specified at the center of each step, as shown below:

Quantization

We know that the quantized signals are selected to approximate the original signals. The amplitudes of the discrete quantized levels are known as reconstruction levels. These levels are also named as representation levels. As discussed above, the distance between the two adjacent reconstructions level is defined as step size. Its quality can be improved by reducing the step size and increasing the number of quantization levels. A TV with 64 levels gives fair color quality, while a TV with 256 levels gives good color quality.

The quantization levels are separated by 'S,' which is the step size. But, the distance of the extreme lower and upper quantization level from their nearest level is only S/2. As long as the instantaneous amplitude of the quantized signals is less than S/2, the noise will not appear at the output of the quantizer. Due to different components attached with the quantizer, such as repeater and amplifier, the quantized signal from the output of the quantizer comes with the removed noise. There are very low chances of quantization error to occur.

Types of Quantization

There are two types of Quantization, uniform Quantization and non-uniform Quantization.

Uniform Quantization

As the name implies, the quantized levels in the uniform quantization process are equally spaced. The uniform quantization is further categorized as mid-rise type uniform quantization and mid-tread type uniform quantization. Both the uniform quantization processes are symmetric about the respective axis.

Mid-rise type uniform Quantization

Rise refers to the rising part. The origin of the discrete quantized signal lies in the middle of the rising part of the stair like graph, as shown below:

Quantization

Mid-tread type uniform Quantization

Tread refers to the flat part. The origin of the discrete quantized signal lies in the middle of the tread part of the stair like graph, as shown below:

Quantization

Advantages of Uniform Quantization

The advantages of Uniform Quantization are as follows:

  • High approximation
    The fixed size of the quantization levels of the uniform quantization increases the accuracy of the discrete signals. Hence, such a type of Quantization has a high approximation compared to non-uniform Quantization.
  • Easy and simple to implement
    Uniform quantization process is easy and simple to implement due to the uniform gap between the adjacent quantization levels.

Non-uniform Quantization

The quantized levels in the non-uniform quantization process are unequally spaced. The relation between such quantization is generally logarithmic due to non-linear nature of the signal.

Advantages of non-uniform Quantization

The advantages of non-uniform Quantization are as follows:

  • High Signal to Noise Ratio (SNR)
    SNR of the non-uniform quantization is higher than the uniform quantization. It is because the non-uniform level requires large number of quantized levels are more expanded.
  • Low quantizer noise
    The quantizer noise of the non-uniform quantization is low than the uniform quantization. It is because the RMS value of the quantized noise power is proportional to the sampled value of the signal.

Quantization error

The difference in the input value and the quantized value of the signal is known as the quantization error. The quantized signal (mq(t)) is the approximation signal of the message signal (m(t)). The difference between the message signal and the quantized signal is termed as quantized noise. It is given by:

Qe = m(t) - mq(t)

It depicts that the output of the quantization process or the received signal is not a perfect copy of the message signal.

A noisy quantized signal is shown below:

Quantization

The same signal with removed noise is shown on the right side of the noisy signal.

The repeaters help in the data transmission over long distances by increasing the signal power. We can decrease the attenuation suffered by the quantized signal be decreasing the space between the repeaters in the communication channel. It also decreases the noise power and error probability.

Let's find the mean square quantization error represented as e2, where e is the voltage difference between the input and the quantized value. Here, the same concept of dividing the signal into M quantization levels will be used. The difference between each level is known as step size represent by S measured in volts.

e = m(t) - mqv

Where,

E = voltage difference

m(t) is the input message signal

mqv is the output signal of the quantizer

The greater the quantization levels, the smaller will be the step size.

The mean square quantization error is given by:

e2 = S2/12

Examples of Quantizer

The device used to perform the quantization process is known as quantizer. Let's discuss a common example of a quantizer.

Analog to Digital Converter

A/D or Analog to Digital Converter consists of a sampler and quantizer. The function of the sampler is to convert a continuous time-varying signal to a discrete-time signal. The conversion process requires sampling and quantization to convert an analog signal to a digital signal. The quantizer function is to represent each level to the fixed discrete finite set of values. There are a number of available quantization bits, such as 8-bit, 16-bit, and 64-bit. The number of levels of each bit can be calculated using the formula (2n), where n refers to the bits.

For the 8-bit, the number of quantization levels are 28 = 256 levels.

For the 16-bit, the number of quantization levels are 216 = 65, 536 levels.

For the 64-bit, the number of quantization levels are 264 = 16.8 million levels.

The quantization noise inversely depends on the number of quantization levels. The greater the quantization levels, the lesser will be the quantization noise.

Advantages of Quantization

The advantages of quantization are as follows:

  • It reduces the number of bits used to represent a signal. It further results in the bandwidth reduction, which has various other advantages, such as low cost, increased reliability, and effective transmission.
  • It enables uniform precision. Precision refers to the accuracy or exactness required in a method.
  • It represents the sampled value of the signal into the finite number of levels, which helps in converting an input analog signal to the digital signal.

Applications of Quantization

Apart from digital communication, quantization process is also used in various fields, such as signal processing, control systems, image processing, science, and linguistics.

  • Digital Signal Processing
    In digital signal processing, quantization maps the large set of the input values to the small set of the output values with a finite number of elements. The device that performs the quantization function is known as quantizer.
  • Image processing
    In image processing, quantization reduces the number of discrete value in the signal. We can also say that it compresses the input signal and produces the compressed signal at the output. For example, reducing the number of colors required to represent a digital image.
  • Physics
    Quantization in science is related to the electromagnetic wave, quantum, or photons. It represents the transitions from the classic mechanics to quantum mechanics. Quantization is used in various theories of physics, such as nuclear physics and atomic physics.

Companding

Companding is a type of non-uniform quantization and is used to increase the strength of the weak signals. It reduces the data rate of the input signal by varying the gap between the two adjacent quantization levels. The unequal quantization level makes it similar to the non-uniform quantization process.

Companding is created from the combination of two words, compression and expanding. The signal is passed through the compressor at the transmitting end while it is passed through the expander at the receiving end. The compressor compresses the signal and improves the quality of transmission. But, it introduces distortion in the signal. The expander is used at the receiving end to undo the distortion introduced by the compressor. The inverse distortions of the two processes (compression and expanding) help in generating the output signal without distortion.

The input-output characteristics of the expander are the reverse as compared to the compressor, as shown below:

Quantization





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA