Skip to content

Commit 5e82c98

Browse files
committed
Merge pull request opencv#9828 from berak:fix_c++17_9572
2 parents babd21c + ada753a commit 5e82c98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/core/test/test_mat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ int Core_ReduceTest::checkOp( const Mat& src, int dstType, int opType, const Mat
133133

134134
assert( opRes.type() == CV_64FC1 );
135135
Mat _dst, dst, diff;
136-
reduce( src, _dst, dim, opType, dstType );
136+
cv::reduce( src, _dst, dim, opType, dstType );
137137
_dst.convertTo( dst, CV_64FC1 );
138138

139139
absdiff( opRes,dst,diff );
@@ -313,7 +313,7 @@ class Core_PCATest : public cvtest::BaseTest
313313
Mat rBackPrjTestPoints = rPCA.backProject( rPrjTestPoints );
314314

315315
Mat avg(1, sz.width, CV_32FC1 );
316-
reduce( rPoints, avg, 0, CV_REDUCE_AVG );
316+
cv::reduce( rPoints, avg, 0, CV_REDUCE_AVG );
317317
Mat Q = rPoints - repeat( avg, rPoints.rows, 1 ), Qt = Q.t(), eval, evec;
318318
Q = Qt * Q;
319319
Q = Q /(float)rPoints.rows;

samples/tapi/tvl1_optical_flow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ template <typename T> inline T clamp (T x, T a, T b)
3737

3838
template <typename T> inline T mapValue(T x, T a, T b, T c, T d)
3939
{
40-
x = clamp(x, a, b);
40+
x = ::clamp(x, a, b);
4141
return c + (d - c) * (x - a) / (b - a);
4242
}
4343

0 commit comments

Comments
 (0)