DIP W2022 23 Midsem
DIP W2022 23 Midsem
Instructions:
) Answer ALL questions.
i) Attempt all sub-parts of a same question at same place and in order.
ii) If you use any algorithm (covered in the class) to solve any problem, just mention it, do not elaborate.
3 446 5 2 0
5 7 1|5 4
5 1 5|2 6 4 1|
1 5 4 7 0
1 2 4 5 2 54
2 1 5 4 2 6 5|1
114 2 5 6 3 5
o2 5 0 4 55 0
Now, perform histogram specification using the target histogram (given below), where ni is the number
of pixels having i" graylevel and generate the frequency table for the output image.
0 1 2 34 5 6 T7
0 2 0 | 20 16 8
2.a Consider the given gray-level image of size 4x 4. Find the output
given image image when the
processed by 3 x 3 adaptive median filter. Note that the border pixels will remain unchanged. Showis6
all intermediate
steps of the executions of this filter clearly.
11 12 15 18
13 6543 44
16 48 14 34
13 24 22 27
Write a thinning algorithm with your own set of rules that transforms a square kernel (side length is 4 or 9
larger) to a straight line of size equal to 2 or larger. Consider that the input image is in
binary form.
3. (a Consider the given gray-level image of size 4 x 4. Find the output image when the given image is 9
b)Apply 1-D IDFT as per the formula given below to the given sequence of
x =
{20,-7+7j, -2,-7-7j}, where j v-1. Show all numbers:|6
intermediate steps clearly.
=
M-1
x)= M F(u)e j27Tux
M
u=0
O110
SE1 SE2
(6) Explain qualitatively what effect the foiluwiig transtormations will have the
Transform of an image:
on Discrete Fourier 3+4
() convolution of the image with a Gaussian kernel of very tiny (nearly zero) standard deviation,
(i) point-wisemultiplication of the image with a complex exponential pattern
where a and b are known constants, and x, y are spatial coordinates.
exp(j2n(ax + by))