diff --git a/modules/optflow/src/pcaflow.cpp b/modules/optflow/src/pcaflow.cpp index 9eaeb5e56..43211c5b5 100644 --- a/modules/optflow/src/pcaflow.cpp +++ b/modules/optflow/src/pcaflow.cpp @@ -40,8 +40,8 @@ // //M*/ -#include "opencv2/ximgproc/edge_filter.hpp" #include "precomp.hpp" +#include "opencv2/ximgproc/edge_filter.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. diff --git a/modules/optflow/src/variational_refinement.cpp b/modules/optflow/src/variational_refinement.cpp index d29ae254d..8fe8e0415 100644 --- a/modules/optflow/src/variational_refinement.cpp +++ b/modules/optflow/src/variational_refinement.cpp @@ -40,8 +40,9 @@ // //M*/ -#include "opencv2/core/hal/intrin.hpp" #include "precomp.hpp" +#include "opencv2/core/hal/intrin.hpp" + using namespace std; namespace cv