Commit 5efd2056 authored by Thierry Hoinville's avatar Thierry Hoinville

Bugfix #3668 in FilterEngine::apply(), use the ROI properly

parent 59cf62ad
......@@ -453,8 +453,12 @@ 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(),/* Bugfix #3668 use the x-shift of ROI
*/
(int)src.step, endY - startY,
dst.data + dstOfs.y*dst.step +
dstOfs.x*dst.elemSize(), (int)dst.step );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment