Merge pull request #11576 from alalek:avoid_copyTo_with_getMat

This commit is contained in:
Alexander Alekhin 2018-05-25 16:52:58 +00:00
commit 4384036108

View File

@ -259,7 +259,7 @@ public:
res_pyr[lvl - 1] += up; res_pyr[lvl - 1] += up;
} }
dst.create(size, CV_32FCC); dst.create(size, CV_32FCC);
res_pyr[0].copyTo(dst.getMat()); res_pyr[0].copyTo(dst);
} }
float getContrastWeight() const CV_OVERRIDE { return wcon; } float getContrastWeight() const CV_OVERRIDE { return wcon; }