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

template<class DstArrayT, class SrcArrayT>
void Impala::Core::Array::Pattern::PatSet ( DstArrayT *&  dst,
SrcArrayT *  src,
int  minimalBW = 0,
int  minimalBH = 0 
) [inline]

Definition at line 24 of file PatSet.h.

References ArrayCH(), ArrayCW(), FuncSet(), Impala::Core::Array::PAR_PART, PxArrayForceNonDistributed(), PxArrayIsPD(), PxArrayPD(), PxArrayPostStateTrans(), PxArrayPreStateTrans(), PxRunLazyParallel(), PxRunParallel(), STRONG, and WEAK.

Referenced by PatRecGenConv2d(), PatRecGenConv2dSep(), and Impala::Core::Tracking::SearcherAroundLastPos::SearchObject().

00025 {
00026     if (dst == 0)
00027         dst = ArrayClone<DstArrayT>(src, minimalBW, minimalBH);
00028 
00029     // todo : check core array sizes
00030 
00031 #ifdef PX_HORUS_USED
00032     if (!PxRunParallel() || PxArrayIsPD(src)) {     // run sequential
00033 #endif
00034         FuncSet(dst, src, 0, 0, src->CW(), src->CH(), 0, 0);
00035 
00036 #ifdef PX_HORUS_USED
00037     } else {                                        // run parallel
00038         PxArrayPreStateTrans(src, PAR_PART, STRONG);
00039         PxArrayPreStateTrans(dst, PAR_PART, WEAK);
00040         FuncSet(PxArrayPD(dst), PxArrayPD(src), 0, 0,
00041             ArrayCW(PxArrayPD(src)), ArrayCH(PxArrayPD(src)), 0, 0);
00042         PxArrayPostStateTrans(dst);
00043 
00044         if (!PxRunLazyParallel()) {
00045             PxArrayForceNonDistributed(src);
00046             PxArrayForceNonDistributed(dst);
00047         }
00048     }
00049 #endif
00050 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:02:23 2010 for ImpalaSrc by  doxygen 1.5.1