Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
805a0c4b
Commit
805a0c4b
authored
Jun 21, 2016
by
Vladislav Samsonov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed build on VS
parent
e57df756
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
pcaflow.cpp
modules/optflow/src/pcaflow.cpp
+8
-0
No files found.
modules/optflow/src/pcaflow.cpp
View file @
805a0c4b
...
@@ -50,6 +50,14 @@ namespace optflow
...
@@ -50,6 +50,14 @@ namespace optflow
namespace
namespace
{
{
#ifndef M_PI
const
float
M_PI
=
3.14159265358979323846
;
#endif
#ifndef M_SQRT2
const
float
M_SQRT2
=
1.41421356237309504880
;
#endif
template
<
typename
T
>
inline
int
mathSign
(
T
val
)
{
return
(
T
(
0
)
<
val
)
-
(
val
<
T
(
0
)
);
}
template
<
typename
T
>
inline
int
mathSign
(
T
val
)
{
return
(
T
(
0
)
<
val
)
-
(
val
<
T
(
0
)
);
}
/* Stable symmetric Householder reflection that gives c and s such that
/* Stable symmetric Householder reflection that gives c and s such that
...
...
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