template<class StorT, int elemSize, class ArithT>
Definition at line 247 of file Array2dTem.h. Referenced by Impala::Core::Tracking::TrackerBackFore::SearchObject(). 00248 { 00249 Int64 count=0; 00250 Int64 y; 00251 for(y=0 ; y<H() ; ++y) 00252 { 00253 Int64 x; 00254 for(x=0 ; x<W() ; ++x) 00255 { 00256 Int64 i; 00257 for(i=0 ; i<ElemSize() ; ++i) 00258 { 00259 StorType e = mData[i + ElemSize()*(x + W()*y)]; 00260 if(e != e) 00261 { 00262 if(count==0) 00263 std::cout << name << " contains nan! first @ (" << x << "," << y 00264 << ") elem" << i << "((debug:" << i + ElemSize()*(x + W()*y) << "))"; 00265 count++; 00266 } 00267 } 00268 } 00269 } 00270 if(count > 0) 00271 std::cout << ", " << count << " of " << W()*H()*ElemSize() << " in total" << std::endl; 00272 }
|