Smoothing and Noise Filtering

I = imread(‘cameraman.tif’);
subplot(2,2,1);
imshow(I); title(‘Original Image’);

H = fspecial(‘motion’,20,45);
MotionBlur = imfilter(I,H,’replicate’);
subplot(2,2,2);
imshow(MotionBlur);title(‘Motion Blurred Image’);

H = fspecial(‘disk’,10);
blurred = imfilter(I,H,’replicate’);
subplot(2,2,3);
imshow(blurred); title(‘Blurred Image’);
H = fspecial(‘gaussian’,[3 3], 0.5 );
gaussian = imfilter(I,H,’replicate’);
subplot(2,2,4);
imshow(gaussian); title(‘Gaussian Image’);

Output:

smoothing

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: