Fixed border interpolation problem in filter2D

This commit is contained in:
Andrey Kamaev
2011-12-26 08:05:33 +00:00
parent 4cfc9dc67e
commit 320bee3bfe
3 changed files with 5 additions and 2 deletions

View File

@@ -144,6 +144,7 @@ void crossCorr( const Mat& img, const Mat& templ, Mat& corr,
img0.adjustROI(roiofs.y, wholeSize.height-img.rows-roiofs.y,
roiofs.x, wholeSize.width-img.cols-roiofs.x);
}
borderType |= BORDER_ISOLATED;
// calculate correlation by blocks
for( i = 0; i < tileCount; i++ )