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

bool Impala::Core::Feature::Color64::VerifyFeatureSum ( float *  pFeature,
int  nDim,
float  ref = 1.0 
) [inline]

Definition at line 620 of file Color64.h.

00620     {
00621         float sum = 0;
00622         for (int i=0; i<nDim; i++)
00623         {
00624             sum += pFeature[i];
00625         }
00626 
00627         float diff = sum-ref;
00628         if ( fabs(diff) < 1e-10 )
00629             return true;
00630         else
00631         {
00632             std::cout << "ERROR: Feature Sum Verifiction failed." << std::endl;
00633             return false;
00634         }
00635         
00636     }
00637 


Generated on Thu Jan 13 09:19:07 2011 for ImpalaSrc by  doxygen 1.5.1