Professional Documents
Culture Documents
DIP W2022 23 Midsem Sol
DIP W2022 23 Midsem Sol
* + * + * +
√ √ [2.5]
* + * + * + * +
* + * + * +
√ √ [2.5]
* + * + * + * +
It can be observed that there is no information loss. This is the reason for the popularity of unitary
transforms.
⁄ 3.0625
⁄
[4]
⁄ 4.5937
⁄ 6.3437
⁄
Frequency Table
K
[1]
Histogram Specification:
Equalization to the Target Histogram
Cumulative Sum
K Round off
⁄
[2]
⁄
Final Mapping
Gray Mapping of the Mapping of the
Map
level equalization equalization of the target
[2]
Frequency Table
K
[1]
2. (a)
:
(b) The steps to design the binary thinning algorithm to transforms a square kernel (radius size is or larger)
to a straight line of size equal to or larger is as follows:
[i] Define a set of templates as follows:
[5]
[ii] Remove all pixels in the input pattern in the following four sub-steps (passes):
Remove all pixels that match template (a) and are removable;
Remove all pixels that match template (b) and are removable; [3]
Remove all pixels that match template (c) and are removable;
Remove all pixels that match template (d) and are removable.
[iii] Go on repeating Step [ii] until no further changes occur in the image pattern, that is, no further [1]
pixels are removed.
3. (a) : Q= -1.5
[1]
(b) When ,
∑ [1.5]
( ) ( )
When ,
∑
[1.5]
( ) ( )
When ,
∑
[1.5]
When ,
∑
[1.5]
( )
[3]
(b) As the order of the filter goes on increasing, a small amount of ringing effects does not creep in because
the Butterworth low pass filter tends to be an ideal filter.
(i) This will have nearly no effect on the DFT as the image is being convolved with just a mean [3]
function.
(ii) Multiplication in spatial domain is convolution in Fourier domain. The image DFT will be
convolved with a delta function peaked at , and hence the Fourier transform will [4]
undergo a frequency shift of , , i.e. , , . Another way to do this is
to look at a twisted version of the Fourier shift theorem which says that
, ( ) , .
(c) The ringing effects due to the sharp cut-offs in the ideal low pass filter (ILPF) and to get rid of ringing
effects, elimination of sharp cut-offs is necessary. This exactly happens in Butterworth low pass filters
(BLPF). The transfer function of the Butterworth low pass filter of order n and the cut off frequency at a
distance D0 from the origin is defined as
[2]
,
,
where, , is the distance from the point , to the origin of the frequency rectangle for an [1]
image. , is the Fourier transform to the filtering mask. Unlike the ILPF, the BLPF does not have
sharp discontinuities and hence there are no ringing effects present when a BLPF is used.