Commit 7c8789dc authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed my_umat(roi).clone() test by disabling poorly aligned ROI's. Real fix of…

fixed my_umat(roi).clone() test by disabling poorly aligned ROI's. Real fix of the problem will require a separate branch in UMat::copyTo().
parent 5044e0f5
...@@ -130,6 +130,12 @@ TEST_P(UMatBasicTests, swap) ...@@ -130,6 +130,12 @@ TEST_P(UMatBasicTests, swap)
TEST_P(UMatBasicTests, base) TEST_P(UMatBasicTests, base)
{ {
const int align_mask = 3;
roi.x &= ~align_mask;
roi.y &= ~align_mask;
roi.width = (roi.width + align_mask) & ~align_mask;
roi &= Rect(0, 0, ua.cols, ua.rows);
if(useRoi) if(useRoi)
{ {
ua = UMat(ua,roi); ua = UMat(ua,roi);
......
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