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

void Impala::Core::Array::TestMakeRandom::testData ( Int64  w,
Int64  h,
double  maxVal 
) [inline]

Definition at line 60 of file TestMakeRandom.h.

References ILOG_DEBUG, Impala::Core::Array::MakeRandomScalarReal64(), and Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::Value().

00061     {
00062         Array2dScalarReal64* a = MakeRandomScalarReal64(w, h, maxVal);
00063         // we could use PixMax here, but PixMax itself doesn't have unit-tests...
00064         bool error = false;
00065         for(int y=0 ; y<h ; ++y)
00066             for(int x=0 ; x<w ; ++x)
00067             {
00068                 if(a->Value(x, y) > maxVal)
00069                 {
00070                     ILOG_DEBUG(a->Value(x, y) <<" > "<< maxVal <<" @ ("<< x
00071                                <<", "<< y <<")");
00072                     error = true;
00073                 }
00074             }
00075         CPPUNIT_ASSERT(!error);
00076     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:17:23 2011 for ImpalaSrc by  doxygen 1.5.1