Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
5e82c98a
Commit
5e82c98a
authored
Oct 11, 2017
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9828 from berak:fix_c++17_9572
parents
babd21c7
ada753a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
test_mat.cpp
modules/core/test/test_mat.cpp
+2
-2
tvl1_optical_flow.cpp
samples/tapi/tvl1_optical_flow.cpp
+1
-1
No files found.
modules/core/test/test_mat.cpp
View file @
5e82c98a
...
...
@@ -133,7 +133,7 @@ int Core_ReduceTest::checkOp( const Mat& src, int dstType, int opType, const Mat
assert
(
opRes
.
type
()
==
CV_64FC1
);
Mat
_dst
,
dst
,
diff
;
reduce
(
src
,
_dst
,
dim
,
opType
,
dstType
);
cv
::
reduce
(
src
,
_dst
,
dim
,
opType
,
dstType
);
_dst
.
convertTo
(
dst
,
CV_64FC1
);
absdiff
(
opRes
,
dst
,
diff
);
...
...
@@ -313,7 +313,7 @@ protected:
Mat
rBackPrjTestPoints
=
rPCA
.
backProject
(
rPrjTestPoints
);
Mat
avg
(
1
,
sz
.
width
,
CV_32FC1
);
reduce
(
rPoints
,
avg
,
0
,
CV_REDUCE_AVG
);
cv
::
reduce
(
rPoints
,
avg
,
0
,
CV_REDUCE_AVG
);
Mat
Q
=
rPoints
-
repeat
(
avg
,
rPoints
.
rows
,
1
),
Qt
=
Q
.
t
(),
eval
,
evec
;
Q
=
Qt
*
Q
;
Q
=
Q
/
(
float
)
rPoints
.
rows
;
...
...
samples/tapi/tvl1_optical_flow.cpp
View file @
5e82c98a
...
...
@@ -37,7 +37,7 @@ template <typename T> inline T clamp (T x, T a, T b)
template
<
typename
T
>
inline
T
mapValue
(
T
x
,
T
a
,
T
b
,
T
c
,
T
d
)
{
x
=
clamp
(
x
,
a
,
b
);
x
=
::
clamp
(
x
,
a
,
b
);
return
c
+
(
d
-
c
)
*
(
x
-
a
)
/
(
b
-
a
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment