1 function GI = gaussianBlur(I,s)
2 % GAUSSIANBLUR blur the image with a gaussian kernel
3 % GI = gaussianBlur(I,s)
4 % I is the image, s is the standard deviation of the gaussian
5 % kernel, and GI is the gaussian blurred image.
7 % Chenyang Xu and Jerry L. Prince 6/17/97
8 % Copyright (c) 1996-97 by Chenyang Xu and Jerry L. Prince
10 M = gaussianMask(1,s);
11 M = M/sum(sum(M)); % normalize the gaussian mask so that the sum is