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

template<class ElemT>
Real64 Impala::Core::Vector::HistogramIntersection2 ( VectorTem< ElemT >  v1,
VectorTem< ElemT >  v2 
) [inline]

Definition at line 16 of file HistogramIntersection2.h.

References Max(), max, Min(), min, and Impala::Core::Vector::VectorTem< ElemT >::Size().

00017 {
00018     Real64 score = 0;
00019     for (int i=0 ; i<v1.Size() ; i++){
00020         Real64 min= Min(v1[i], v2[i]);
00021         Real64 max= Max(v1[i],v2[i]);
00022         if(max!=0)
00023             score += min/max;
00024         else
00025           score +=1;
00026     }
00027     return score;
00028 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:27:09 2010 for ImpalaSrc by  doxygen 1.5.1