You are on page 1of 5

Farrell DSouza

Q1.

1. Firstly, a convolution filter was applied in order to convolve a kernel and brighten the image and remove the dark areas thereby normalising in brightness. 2. The second step involves using an outline filter in order to .identify the edges of the object that is used for image processing by a method of maximum difference. The outline filter applied here is 3. 3. Thirdly a threshold application was carried out in order to remove the values of pixel intensities between the given values: used here-26-255 4. Salt and pepper effect was applied in order to reduce the noise and it removes the pixels that are around the image that are much higher or lower in intensities. 5. A last convolution filter using blur was applied in order to remove the noise and add brightness to the image.

Q2. Matlab (a)Histogram of the image before eq.

After eq,

(b)Finger print after processing:

Coding used: 1. Imread(farrell.jpg); //is used to read the image that is to be used for processing 2. f=imread('farrell.png'); // the value of the image is stored in f for easier application 3. >> imhist(f);//shows the histogram of the image of the image 4. >> e=histeq(f);// equalises the histogram and stores the image in e 5. >> imshow(e); //shows the equalised image 6. >> imhist(e); //shows the equalised histogram 7. >> n=imnoise(e,'salt & pepper',0.4); //adds noise of the image in e and stores it in n 8. >> fl=medfilt2(n); reduces the noise 9. >> f12=medfilt2(fl); futher filters the image 10. >> imshow(f12); shows the filtered image 11. >> t=im2bw(f12); eliminates all the colours except for black and white 12. >> imshow(t); shows the final image. 13. >> imshow(t); 14. >> level = graythresh(t);

You might also like