Commit 805a0c4b authored by Vladislav Samsonov's avatar Vladislav Samsonov

Fixed build on VS

parent e57df756
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment