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
75b3ea9f
Commit
75b3ea9f
authored
Jun 22, 2016
by
Vladislav Samsonov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing some compiler warnings
parent
805a0c4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
pcaflow.hpp
modules/optflow/include/opencv2/optflow/pcaflow.hpp
+2
-0
pcaflow.cpp
modules/optflow/src/pcaflow.cpp
+11
-0
No files found.
modules/optflow/include/opencv2/optflow/pcaflow.hpp
View file @
75b3ea9f
...
...
@@ -116,6 +116,8 @@ private:
void
getSystem
(
OutputArray
A1Out
,
OutputArray
A2Out
,
OutputArray
b1Out
,
OutputArray
b2Out
,
const
std
::
vector
<
Point2f
>
&
features
,
const
std
::
vector
<
Point2f
>
&
predictedFeatures
,
const
Size
size
);
OpticalFlowPCAFlow
&
operator
=
(
const
OpticalFlowPCAFlow
&
);
// make it non-assignable
};
CV_EXPORTS_W
Ptr
<
DenseOpticalFlow
>
createOptFlow_PCAFlow
();
...
...
modules/optflow/src/pcaflow.cpp
View file @
75b3ea9f
...
...
@@ -43,6 +43,17 @@
#include "opencv2/ximgproc/edge_filter.hpp"
#include "precomp.hpp"
/* Disable "from double to float" and "from size_t to int" warnings.
* Fixing these would make the code look ugly by introducing explicit cast all around.
* Here these warning are pointless anyway.
*/
#ifdef _MSC_VER
#pragma warning( disable : 4305 4244 4267 4838 )
#endif
#ifdef __clang__
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
#endif
namespace
cv
{
namespace
optflow
...
...
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