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:
|