mirror of
https://github.com/opencv/opencv.git
synced 2026-09-12 21:37:09 -05:00
build: eliminate calls of removed functionality from C++17
Most part is deprecated since C++11
This commit is contained in:
@@ -138,8 +138,13 @@ bool CV_Affine3D_EstTest::testNPoints()
|
||||
std::transform(fpts.ptr<Point3f>(), fpts.ptr<Point3f>() + n, tpts.ptr<Point3f>(), WrapAff(aff));
|
||||
|
||||
/* adding noise*/
|
||||
#ifdef CV_CXX11
|
||||
std::transform(tpts.ptr<Point3f>() + m, tpts.ptr<Point3f>() + n, tpts.ptr<Point3f>() + m,
|
||||
[=] (const Point3f& pt) -> Point3f { return Noise(noise_level)(pt + shift_outl); });
|
||||
#else
|
||||
std::transform(tpts.ptr<Point3f>() + m, tpts.ptr<Point3f>() + n, tpts.ptr<Point3f>() + m, std::bind2nd(std::plus<Point3f>(), shift_outl));
|
||||
std::transform(tpts.ptr<Point3f>() + m, tpts.ptr<Point3f>() + n, tpts.ptr<Point3f>() + m, Noise(noise_level));
|
||||
#endif
|
||||
|
||||
Mat aff_est;
|
||||
vector<uchar> outl;
|
||||
|
||||
Reference in New Issue
Block a user