Commit 43840361 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #11576 from alalek:avoid_copyTo_with_getMat

parents 0a6d1900 b3ff29fc
...@@ -259,7 +259,7 @@ public: ...@@ -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; }
......
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