Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

static int Impala::Core::Array::filterWidth ( double  sigma,
int  deri,
double  acc,
int  maxlen 
) [inline, static]

Definition at line 48 of file MakeGaussian1d.h.

Referenced by MakeGaussian1d().

00049 {
00050     double     acc2;
00051     int        fsize;
00052 
00053     acc2 = 1.0 - (1.0 - acc)/2.0;
00054 
00055     fsize = 2*int(acc*sigma+0.5)+1;
00056 
00057     /*  filter kernel is always odd sized, so if maxlen is even 
00058      *  subtract one.
00059      */
00060     if ( !(maxlen%2) )
00061         maxlen--; 
00062     if (fsize > maxlen)
00063         fsize = maxlen;
00064 
00065     return fsize;
00066 }


Generated on Fri Mar 19 10:57:38 2010 for ImpalaSrc by  doxygen 1.5.1