]> AND Private Git Repository - these_gilles.git/blob - THESE/codes/snake/gvf_dist_v4.2c/snake/gaussianBlur.m
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
27 aout
[these_gilles.git] / THESE / codes / snake / gvf_dist_v4.2c / snake / gaussianBlur.m
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.
6
7 %    Chenyang Xu and Jerry L. Prince 6/17/97
8 %    Copyright (c) 1996-97 by Chenyang Xu and Jerry L. Prince
9
10 M = gaussianMask(1,s);
11 M = M/sum(sum(M));   % normalize the gaussian mask so that the sum is
12                      % equal to 1
13 GI = xconv2(I,M);