template<class T>
Definition at line 1198 of file KfrMotionExtractor.h. References ILOG_WARN. Referenced by Impala::Core::VideoSet::KfrDiffExtractor::ComputeHistogram(). 01199 { 01200 const int bin = (nrBins * (val - low)) / (high - low); 01201 if (bin >= 0 && bin < nrBins) 01202 return bin; 01203 01204 if (val == high) 01205 return nrBins - 1; 01206 01207 ILOG_WARN("Unexpected value: " << val << 01208 " is not in range [" << low << ", " << high << "]"); 01209 return (bin < 0) ? 0 : nrBins-1; 01210 }
|