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

template<class DstArrayT, class Src1ArrayT>
void Impala::Core::Array::MirrorY ( DstArrayT *&  dst,
Src1ArrayT *  src1 
) [inline]

Definition at line 15 of file Mirror.h.

Referenced by Impala::Core::ImageSet::InterestPointProc::HandleNewFile().

00016 {
00017     if (dst == 0)
00018         dst = ArrayClone<DstArrayT>(src1);
00019     // this function also mirrors the borders
00020     for(int y = 0; y < src1->H(); y++)
00021     {
00022         for(int x = 0; x < src1->W() / 2; x++)
00023         {
00024             int x2 = src1->W() - x - 1;
00025             typename Src1ArrayT::ArithType tmp = src1->Value(x, y);
00026             typename Src1ArrayT::ArithType tmp2 = src1->Value(x2, y);
00027             dst->SetValue(tmp, x2, y);
00028             dst->SetValue(tmp2, x, y);
00029         }
00030     }
00031 }


Generated on Thu Jan 13 09:17:07 2011 for ImpalaSrc by  doxygen 1.5.1