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

void Impala::Core::Tracking::Classifier::SetVec ( const Array::Array2dScalarReal64 v,
int  index 
) [inline]

Sets the initial value of vector[index].

Can also be used to reset the classifier.

Definition at line 72 of file Classifier.h.

References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), mDimensionality, mObjectVectors, and mSize.

Referenced by Impala::Core::Tracking::TrackerBackFore::SetForeground().

00073     {
00074         if(index >= mSize)
00075             std::cout << "[Classifier::SetVec] Classifier out of bounds" << std::endl;
00076         const double* vp = v.CPB(0,0);
00077         double* op = mObjectVectors->CPB(0,index);
00078         memcpy(op, vp, mDimensionality*sizeof(double));
00079     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:02 2011 for ImpalaSrc by  doxygen 1.5.1