Commit e4be2b05 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #807 from alalek:cmake_fix_compiler_flags_detection

parents 5cb07de3 8b71f7e2
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include "precomp.hpp" #include "precomp.hpp"
#include "opencv2/core/utility.hpp" #include "opencv2/core/utility.hpp"
#include "opencv2/core/hal/hal.hpp" #include "opencv2/core/hal/hal.hpp"
#include "opencv2/core/private.hpp"
#include "opencl_kernels_optflow.hpp" #include "opencl_kernels_optflow.hpp"
namespace cv { namespace cv {
...@@ -54,7 +55,7 @@ using std::vector; ...@@ -54,7 +55,7 @@ using std::vector;
static bool ocl_updateMotionHistory( InputArray _silhouette, InputOutputArray _mhi, static bool ocl_updateMotionHistory( InputArray _silhouette, InputOutputArray _mhi,
float timestamp, float delbound ) float timestamp, float delbound )
{ {
ocl::Kernel k("updateMotionHistory", ocl::video::updatemotionhistory_oclsrc); ocl::Kernel k("updateMotionHistory", ocl::optflow::updatemotionhistory_oclsrc);
if (k.empty()) if (k.empty())
return false; return false;
......
...@@ -2,3 +2,5 @@ set(the_description "Saliency API") ...@@ -2,3 +2,5 @@ set(the_description "Saliency API")
set(OPENCV_MODULE_IS_PART_OF_WORLD OFF) set(OPENCV_MODULE_IS_PART_OF_WORLD OFF)
ocv_define_module(saliency opencv_imgproc opencv_highgui opencv_features2d WRAP python) ocv_define_module(saliency opencv_imgproc opencv_highgui opencv_features2d WRAP python)
ocv_warnings_disable(CMAKE_CXX_FLAGS -Woverloaded-virtual)
...@@ -253,7 +253,7 @@ namespace ...@@ -253,7 +253,7 @@ namespace
const double Lr = 1.0 - sigma_r; const double Lr = 1.0 - sigma_r;
return max(2, static_cast<int>(ceil(Hs * Lr))); return max(2, static_cast<int>(ceil(Hs * Lr)));
} }
/*
void ensureSizeIsEnough(int rows, int cols, int type, Mat& m) void ensureSizeIsEnough(int rows, int cols, int type, Mat& m)
{ {
if (m.empty() || m.type() != type || m.data != m.datastart) if (m.empty() || m.type() != type || m.data != m.datastart)
...@@ -283,7 +283,7 @@ namespace ...@@ -283,7 +283,7 @@ namespace
{ {
ensureSizeIsEnough(size.height, size.width, type, m); ensureSizeIsEnough(size.height, size.width, type, m);
} }
*/
template <typename T> template <typename T>
inline void ensureSizeIsEnough(int rows, int cols, Mat_<T>& m) inline void ensureSizeIsEnough(int rows, int cols, Mat_<T>& m)
{ {
......
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