Commit 5f8d3d75 authored by Alexander Alekhin's avatar Alexander Alekhin

eliminate compiler warnings

parent c1101a02
...@@ -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