DIP Assingment
DIP Assingment
Assignment
1. Write a MATLAB code for which describe the importance of spatial resolution and intensity
resolution. For spatial resolution consider the original image of size 1024*1024, for intensity
Resolution consider 8 bit image and also comments on the obtain result.
2. Write a MATLAB code which gives the illustration of basic pixels relationship.
3. Perform the linear convolution between the two matrix x(m,n) & h(m,n) given below .
4. Write a MATLAB code for the following basic gray level transformation function
a. Indentity function
b. Negative function
c. Log transformation (take dark image then observe)
d. Power-law transformation
Consider MRI image & obtain the result with gamma = 0.65 , 0.45, 0.32
Consider the washed out image and obtain the result gamma = 3.5, 4.5, 4, 5, 5.5
5. Write a MATLAB code on gray level slicing without background and gray level slicing with
background and also comments on the obtain results
6. Implement the low pass filter in spatial domain by considering the mass-size , 3*3 , 5*5, 7*7, and
9*9.
Also find Gaussion Noise in the image and remove the noise by considering appropriate filter
size
Also observe effect of weighted Avarage filter and give your comments on obtain results.
7. Write a MATLAB code for median filter take the image and add salt and peter noise.
8. Write a MATLAB program which generates the following frequencies in horizontal direction
(1,10,20)
9. Same you repeat for vertical direction.
10. Rotate the signal of horizontal frequency tilted 45 degree and observe the frequency spectrum
of above images.
11. Write a MATLAB programe that emphacise the concept of phase. Consider two images,
interchange magnitude and phase in a given image, and observe the reconstructed image. Also,
give comments on the reconstructed image.
12. Write a MATLAB code which prove the convolution in spatial domain is equal to multiplication in
frequency domain.
13. Write a MATLAB code for the ideal filter, Butterworth filter, and Gaussion filter for cut-off
frequencies 6, 16, 32, 90, and 250. For Butterworth filter order 2.
14. Does BLPF introduce the ringing effect, as does ideal LPF verify the answer by considering any
image and increasing the order of the filter? Give comments on the obtained result.
16. A blur filter H(x,y) is given by matrix as shown , find the deblur filter using
1. Inverse filter approach (Motion blur)
2. Pseudo inverse filter approach with ϩ = 0.05 (motion + white gaussion )
3. Pseudo inverse filter approach with ϩ = 0.2 (blur noise)
17. Read an image, degrade the image, then add white Gaussian noise, apply a pseudo-inverse filter,
and observe the result.
18. Write a MATLAB code, then read an image and degrade it. For this degraded image, add AWGN
and simple gaussion noise, then apply the Wiener filter to restore the image comment on the
observe output.
19 Write a MATLAB code for the following filter to remove appropriate noise.
Geometric Mean filter
Harmonic Filter
Contra Harmonic Filter
20 Write a MATLAB code for the following filter.
Mean Filter
Max Fiter
Midpoint Filter
Alpha-trimmed Filter
21. Write a MATLAB code for edge detection. Consider the following edge and compare the results.
Prewitt
Roberts
Rominson
Sobel
Kirsch
Make self
22. Write a MATLAB code for detection on the right edge using the Hough transform.
23 Write a MATLAB code to implement an adaptive local noise reduction filter and compare the results
of this adaptive filter with the airthmatic mean and geometric mean filters.
24. Write a MATLAB code that performs the following morphological operation on a binary image.
erosion, dilation, opening, closing, boundary extension, region filling