Assignment 6
Assignment 6
1
ID2090: Introduction to Scientific Computing Jan-May 24
In image processing, a kernel is a small matrix used for transforming an image. This is achieved by
convolving the image with the kernel matrix.
Consider a 3×3 kernel which is a matrix Aij that will operate on an image as follows: For a pixel located
at (m, n) the value of the pixel Pm,n in the image, the new value is given by the following formula:
i=2,j=2
X
new old
Pm,n = Aij Pm−1+i,n−1+j
i=0,j=0
You have been given two images, the original Lena as well as a distorted version of her.
[15 marks] (a) By taking up kernels for at least two different image operations (such as brightness change, contrast
change, gamma correction, motion blur, edge detection, etc.), illustrate how the image is modified.
[15 marks] (b) Can you reduce the noise in the second image using any of the kernels above? Why does it work /
not work?
[10 marks] (c) Having worked with Fourier Transforms in the previous assignment, can you figure out a way to
filter noise from the image by manipulating its values in the frequency domain? How does this
perform against the kernel method above? Can you comment on the nature of noise that would be
suitable for these various methods?
For the boundary pixels, you can either skip them or consider a periodic boundary condition as you
wish. You can also try padding the image.
[30 marks] 3. Reflection:
– Write a LATEX report (named <roll_number>_A6.pdf), which contains your observations and the
overall conclusion you got from performing the tasks above. Upload the same on Moodle.
– Your PDF report should contain the old and the modified images for illustrating the kernel opera-
tions.
– Make sure you provide in the report - the branch, and the node in which you caught the Arceus!
– Avoid repeating the same point multiple times in the report.
– Make use of math expressions effectively whenever possible.
– As and when possible, write your points in ordered or unordered bullet points. Images/ Screenshots
of intermediate steps are appreciated.
– Remember that the more details you project in the report, the more marks you will be reflected
with.
[10 marks] (a) Task 1
[20 marks] (b) Task 2