Commit b3ff29fc authored by Alexander Alekhin's avatar Alexander Alekhin

avoid copyTo(outputarray.getMat()) pattern

- leads to errors due 'const' modifier of getMat() method
- may be non-optimal with non-CPU data storage
parent 6c06fcee
......@@ -259,7 +259,7 @@ public:
res_pyr[lvl - 1] += up;
}
dst.create(size, CV_32FCC);
res_pyr[0].copyTo(dst.getMat());
res_pyr[0].copyTo(dst);
}
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