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

template<class StorT, int elemSize, class ArithT>
void Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::GrowBorder ( Int64  amount  )  [inline]

this function leaves the data intact, but adds <outer> amount rows and columns as border see the math in the function

Definition at line 277 of file Array2dTem.h.

00278     {
00279         if(amount < 0)
00280         {
00281             if(-amount > mBH || -amount > mBW)
00282             {
00283                 std::cerr 
00284                     << "WARNING: [Array2dTem::GrowBorder] negative amount > border" 
00285                     << std::endl;
00286                 return;
00287             }
00288             if(2*amount > mCH || 2*amount > mCW)
00289             {
00290                 std::cerr 
00291                     << "WARNING: [Array2dTem::GrowBorder] amount > half of image " 
00292                     << std::endl;
00293                 return;
00294             }
00295         }
00296 
00297         mBW += amount;
00298         mBH += amount;
00299         mCW -= 2*amount;
00300         mCH -= 2*amount;
00301     }


Generated on Fri Mar 19 10:59:05 2010 for ImpalaSrc by  doxygen 1.5.1