연구관련/프로그래밍

[Matlab] 영상 Gaussian filtering

우주여행가 2013. 4. 4. 17:58

%%# Read an image
I = imread('peppers.png');
%# Create the gaussian filter with hsize = [5 5] and sigma = 2
G = fspecial('gaussian',[5 5],2);
%# Filter it
Ig = imfilter(I,G,'same');
%# Display
imshow(Ig)