template<class DstArrayT, class SrcArrayT, class MpoT>
Definition at line 117 of file FuncMpo.h. References ArrayCH(), ArrayCPB(), ArrayCW(), PtrRead(), and PtrWrite(). Referenced by PatM6PixOp(). 00119 { 00120 typedef typename DstArrayT::StorType DstStorT; 00121 typedef typename DstArrayT::ArithType DstArithT; 00122 typedef typename SrcArrayT::StorType SrcStorT; 00123 typedef typename SrcArrayT::ArithType SrcArithT; 00124 00125 int width = ArrayCW(dst); 00126 int height = ArrayCH(dst); 00127 for (int y=0 ; y<height ; y++) 00128 { 00129 SrcStorT* s1Ptr = ArrayCPB(src1, 0, y); 00130 SrcStorT* s2Ptr = ArrayCPB(src2, 0, y); 00131 SrcStorT* s3Ptr = ArrayCPB(src3, 0, y); 00132 SrcStorT* s4Ptr = ArrayCPB(src4, 0, y); 00133 SrcStorT* s5Ptr = ArrayCPB(src5, 0, y); 00134 SrcStorT* s6Ptr = ArrayCPB(src6, 0, y); 00135 DstStorT* dPtr = ArrayCPB(dst, 0, y); 00136 for (int x=0 ; x<width ; x++) 00137 { 00138 PtrWrite(dPtr, mpo.DoIt(PtrRead(s1Ptr, SrcArithT()), 00139 PtrRead(s2Ptr, SrcArithT()), 00140 PtrRead(s3Ptr, SrcArithT()), 00141 PtrRead(s4Ptr, SrcArithT()), 00142 PtrRead(s5Ptr, SrcArithT()), 00143 PtrRead(s6Ptr, SrcArithT()))); 00144 dPtr += DstArrayT::ElemSize(); 00145 s1Ptr += SrcArrayT::ElemSize(); 00146 s2Ptr += SrcArrayT::ElemSize(); 00147 s3Ptr += SrcArrayT::ElemSize(); 00148 s4Ptr += SrcArrayT::ElemSize(); 00149 s5Ptr += SrcArrayT::ElemSize(); 00150 s6Ptr += SrcArrayT::ElemSize(); 00151 } 00152 } 00153 }
Here is the call graph for this function:
|