Lab_4
Lab_4
Objective: How can we implement the Image Filtering operations over an image in Python? Perform
the provided task as follows.
1.Use the grayscale image & apply the following Non-linear filters to the image. Also display
the output images obtained after applying each filter. Generate and compare the histograms
before and after filtering.
a. Max Filter
b. Min Filter
c. Midpoint Filter 2 Marks
2. Use the noisy image &apply Mean Filter to the image using two different padding
techniques: Zero Padding, Row and Column Duplication Padding. Also perform following
Operations:
4. On a Grayscale Image, add different types of noise to the image: Gaussian Noise & Raylegh
Noise and perform the following operations:
a. Apply a Median Filter to remove the noise from the image.
b. Plot the histogram of Original Image
c. Plot the histogram of Noisy Image (for each noise type).
d. Plot the histogram of Denoised Image (after applying the Median Filter).
2 Marks