template<class StorT, int elemSize, class ArithT>
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 }
|