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

void Impala::Core::Array::IntegrateReduce ( Array::Array2dScalarReal64 *&  dst,
Array::Array2dScalarReal64 *  src,
int  n 
)

src is reduced in such a way that a pixel in the returned image contains the sum of a n by n block of pixels in src

Definition at line 39 of file IntegrateReduce.h.

References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), IntegrateReduceLine(), and SetVal().

Referenced by Impala::Core::Feature::DSurf(), and Impala::Core::Feature::TestFunctions::setUp().

00041 {
00042     // if dst exists it should have the correct size
00043     if(dst && (dst->CW() != src->CW()/n || dst->CH() != src->CH()/n))
00044     {
00045         delete dst;
00046         dst = 0;
00047     }
00048     if(dst == 0)
00049         dst = new Array::Array2dScalarReal64(src->CW()/n, src->CH()/n, 0, 0);
00050     SetVal(dst, 0);
00051     int y=0;
00052     while(y <= src->CH()-n)
00053     {
00054         for(int i=0 ; i<n ; ++i)
00055         {
00056             IntegrateReduceLine(dst, src, n, y);
00057             ++y;
00058         }
00059     }
00060 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:56:51 2010 for ImpalaSrc by  doxygen 1.5.1