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

template<class DstArrayT, class SrcArrayT, class VecPointT, class VecNeighborT, class NeighborsT>
void Impala::Core::Array::Pattern::FuncQueueBased_FillNeighborValues ( DstArrayT *  dst,
SrcArrayT *  src,
Geometry::PointZ  centralPoint,
const VecPointT &  neighborCoordinates,
VecNeighborT &  vecneighbors,
NeighborsT   
) [inline]

Definition at line 64 of file FuncQueueBased.h.

References ArrayCPB(), ArrayCW(), Impala::Core::Geometry::PointZ::mX, and PtrRead().

00068 {
00069     typedef typename DstArrayT::StorType DstStorT;
00070     typedef typename DstArrayT::ArithType DstArithT;
00071     typedef typename SrcArrayT::StorType SrcStorT;
00072     typedef typename SrcArrayT::ArithType SrcArithT;
00073 
00074     vecneighbors.clear();
00075     int imgsizex = ArrayCW(dst);
00076     int imgsizey = ArrayCW(dst);
00077     for (int i=0; i<neighborCoordinates.size(); i++)
00078     {
00079         Geometry::PointZ p = neighborCoordinates[i]+centralPoint;
00080         int tempx=p.mX, tempy=p.mY;
00081         if (tempx>=0 && tempy>=0 && tempx<imgsizex && tempy<imgsizey)
00082         {
00083             DstStorT* dPtr = ArrayCPB(dst, tempx, tempy);
00084             SrcStorT* sPtr = ArrayCPB(src, tempx, tempy);
00085             NeighborsT neighbors;
00086             neighbors.point=p; 
00087             neighbors.arith=PtrRead(dPtr, DstArithT()); 
00088             neighbors.img=PtrRead(sPtr, SrcArithT()); 
00089             vecneighbors.push_back(neighbors);
00090         }
00091     }
00092 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:01:40 2010 for ImpalaSrc by  doxygen 1.5.1