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

template<class ElemT>
void Impala::Core::Histogram::Histogram2dTem< ElemT >::AddWeightSafe ( ElemT  valueX,
ElemT  valueY,
double  weight = 1. 
) [inline]

Definition at line 97 of file Histogram2dTem.h.

Referenced by Impala::Core::Histogram::NgbOutCooccurence::NextEl().

00098     {
00099         int indexX = ValueToBinX(valueX);
00100         int indexY = ValueToBinY(valueY);
00101         if (indexX<0 || indexX>=this->CW() || indexY<0 || indexY>=this->CH())
00102         {
00103             mOutliers += weight;
00104         }
00105         else
00106             *this->CPB(indexX, indexY) += weight;
00107     }


Generated on Fri Mar 19 11:12:32 2010 for ImpalaSrc by  doxygen 1.5.1