mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
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:
parent
6c06fcee61
commit
b3ff29fcf5
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user