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

double Impala::Core::Array::Trait::FuncKalmanColor::MahalanobisDist ( double *  p1,
double *  p2 
) [inline]

computes mahalanobis distance with the variance found in the previous frame automatically updates the residuals.

Definition at line 290 of file FunctorKalman.h.

00291     {
00292         double r, err=0;
00293         for(int i=0 ; i<3 ; i++)
00294         {
00295             r = p1[i] - p2[i];
00296             err += r*r/(mSigmaG[i]+mSigmaI[i]);
00297             mResidualThisFrame[i] += r*r;
00298         }
00299         return err;
00300     }


Generated on Fri Mar 19 11:05:56 2010 for ImpalaSrc by  doxygen 1.5.1