Merge pull request #2701 from thoinvil:BugfixFilterEngineApplyROI

This commit is contained in:
Vadim Pisarevsky 2014-05-19 17:34:45 +04:00 committed by OpenCV Buildbot
commit 988b108858

View File

@ -453,8 +453,11 @@ void FilterEngine::apply(const Mat& src, Mat& dst,
dstOfs.y + srcRoi.height <= dst.rows );
int y = start(src, srcRoi, isolated);
proceed( src.data + y*src.step, (int)src.step, endY - startY,
dst.data + dstOfs.y*dst.step + dstOfs.x*dst.elemSize(), (int)dst.step );
proceed( src.data + y*src.step
+ srcRoi.x*src.elemSize(),
(int)src.step, endY - startY,
dst.data + dstOfs.y*dst.step +
dstOfs.x*dst.elemSize(), (int)dst.step );
}
}