rewrote matchTemplate in C++; added border awareness to crossCorr (ticket #557)

This commit is contained in:
Vadim Pisarevsky
2010-11-12 20:55:32 +00:00
parent 66d10b1815
commit 9e7b8d5f67
4 changed files with 39 additions and 10 deletions

View File

@@ -442,6 +442,7 @@ cvCopyMakeBorder( const CvArr* srcarr, CvArr* dstarr, CvPoint offset,
if( dststep == 0 )
dststep = CV_STUB_STEP;
bordertype &= 15;
if( bordertype == IPL_BORDER_REPLICATE )
{
icvCopyReplicateBorder_8u( src->data.ptr, srcstep, srcsize,