Code covered by the BSD License  

Highlights from
Study of various Digital Image Processing concepts using MATLAB

image thumbnail

Study of various Digital Image Processing concepts using MATLAB

by

 

Study of various Digital Image Processing concepts using MATLAB. .txt files for C are also included

restoration.m
clc;
clear;
close all;

F=imread('bwduck.bmp');
G=imnoise(F,'gaussian');
H=imnoise(F,'salt & pepper');

figure(1);
subplot(1,3,1);
imshow(F);
title('Original Image');
subplot(1,3,2);
imshow(G);
title('Gaussian Noise Image G');
subplot(1,3,3);
imshow(H);
title('Salt and Pepper Image H');
i=fspecial('gaussian');

I=imfilter(medfilt2(G,[3 3]),i);

J=imfilter(medfilt2(H,[3 3]),i);

figure(2)
subplot(1,2,1)
imshow(I)
title('Median Filtered and Gaussian Filtered of G');
subplot(1,2,2)
imshow(J)
title('Median Filtered and Gaussian Filtered of H');

Contact us