template<class DstArrayT, class Src1ArrayT, class Src2ArrayT, class BpoT>
Translation variant binary pixel operation based on pointer call.
Definition at line 50 of file FuncBpo.h. References ArrayCH(), ArrayCPB(), and ArrayCW(). 00052 { 00053 typedef typename DstArrayT::StorType DstStorT; 00054 typedef typename Src1ArrayT::StorType Src1StorT; 00055 typedef typename Src2ArrayT::StorType Src2StorT; 00056 00057 int width = ArrayCW(dst); 00058 int height = ArrayCH(dst); 00059 for (int y=0 ; y<height ; y++) 00060 { 00061 Src1StorT* s1Ptr = ArrayCPB(src1, 0, y); 00062 Src2StorT* s2Ptr = ArrayCPB(src2, 0, y); 00063 DstStorT* dPtr = ArrayCPB(dst, 0, y); 00064 for (int x=0 ; x<width ; x++) 00065 { 00066 bpo.DoIt(dPtr, s1Ptr, s2Ptr, x, y); 00067 dPtr += DstArrayT::ElemSize(); 00068 s1Ptr += Src1ArrayT::ElemSize(); 00069 s2Ptr += Src2ArrayT::ElemSize(); 00070 } 00071 } 00072 }
Here is the call graph for this function:
|