Quantization and Sampling Test
Quantization and Sampling Test
TEST
ABHIJEET KARMAKAR 13000118141
AYUSHI KUMARI 13000118110
ABHAY KUMAR CHOUBEY 13000118142
INTRODUCTION
● In Digital Image Processing, signals captured from the physical world need to be translated into
digital form by “Digitization” Process.
● In order to become suitable for digital processing, an image function f(x,y) must be digitized both
spatially and in amplitude. This digitization process involves two main processes called:
Typically, a frame grabber or digitizer is used to sample and quantize the analogue video signal.
BASIC IDEA
● The basic idea behind converting an analog signal to its digital signal is to convert both of its axis
(x,y) into a digital format.
● Since an image is continuous not just in its co-ordinates (x axis), but also in its amplitude (y axis), so
the part that deals with the digitizing of co-ordinates is known as sampling.
● And the part that deals with digitizing the amplitude is known as quantization.
SAMPLING
● When looking at this image, we can see there are
some random variations in the signal caused by
noise.
● In sampling we reduce this noise by taking samples.
● It is obvious that more samples we take, the quality
of the image would be more better, the noise would
be more removed and same happens vice versa.
● However, if you take sampling on the x axis, the
signal is not converted to digital format, unless you
take sampling of the y-axis too which is known as
quantization.
RELATIONSHIP WITH PIXELS
● The quantized figure shown in the previous slide has 5 different levels of gray.
● It means that the image formed from this signal, would only have 5 different colors. It would be a black and white
image more or less with some colors of gray.
● Now if you were to make the quality of the image more better, there is one thing you can do here. Which is, to
increase the levels, or gray level resolution up.
● If you increase this level to 256, it means you have an gray scale image. Which is far better then simple black and
white image.
● Now 256, or 5 or what ever level you choose is called gray level.
● The formula that we know for gray level resolution is L=2^k.
● The gray level can be defined in two ways:
○ Gray level = number of bits per pixel (BPP).(k in the equation)
○ Gray level = number of levels per pixel.
In this case we have gray level is equal to 256. If we have to calculate the number of bits, we would simply put the values in
the equation. In case of 256levels, we have 256 different shades of gray and 8 bits per pixel, hence the image would be a
gray scale image.
REDUCING THE GRAY LEVEL
● Now we will reduce the gray levels of the image to see the effect on the image.
● Lets say you have an image of 8bpp, that has 256 different levels. It is a grayscale image and the image looks
something like this.
● 256 GRAY LEVEL
● Now we will start reducing the gray levels. We will first reduce the gray levels from 256 to 128.
● Now before reducing it, further two 2 levels, you can easily see that the image has been distorted badly by reducing
the gray levels.
● Now we will reduce it to 2 levels, which is nothing but a simple black and white level. It means the image would be
simple black and white image.
continued..
2 GRAY LEVEL
● That’s the last level we can achieve, because if reduce it further, it would be simply a black image, which can not be
interpreted.
THANK YOU...