avoid copyTo(outputarray.getMat()) pattern

- leads to errors due 'const' modifier of getMat() method
- may be non-optimal with non-CPU data storage
This commit is contained in:
Alexander Alekhin 2018-05-23 13:56:34 +03:00
parent 6c06fcee61
commit b3ff29fcf5

View File

@ -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; }