From 545071e998806235442edda5f575ee61e836abe9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 3 Jan 2019 00:09:09 +0100 Subject: cruft --- cv/CMakeLists.txt | 2 +- cv/numeric.hpp | 5 ++--- cv/video-property-page.cpp | 3 --- cv/video-property-page.hpp | 6 +----- 4 files changed, 4 insertions(+), 12 deletions(-) (limited to 'cv') diff --git a/cv/CMakeLists.txt b/cv/CMakeLists.txt index 1007344c..60350a99 100644 --- a/cv/CMakeLists.txt +++ b/cv/CMakeLists.txt @@ -1,6 +1,6 @@ find_package(OpenCV QUIET) if(OpenCV_FOUND) otr_module(cv STATIC) - target_link_libraries(${self} opencv_core opencv_videoio) + target_link_libraries(${self} opencv_videoio opencv_core) target_include_directories(${self} SYSTEM PRIVATE ${OpenCV_INCLUDE_DIRS}) endif() diff --git a/cv/numeric.hpp b/cv/numeric.hpp index 0edb7f58..7d850cbe 100644 --- a/cv/numeric.hpp +++ b/cv/numeric.hpp @@ -5,9 +5,8 @@ namespace types { using f = double; - namespace constants { - static constexpr inline f eps = f(1e-8); - } + static constexpr inline f eps = f(1e-8); + static constexpr inline f pi = f(M_PI); template using vec = cv::Vec; using vec2 = vec<2>; diff --git a/cv/video-property-page.cpp b/cv/video-property-page.cpp index 1b8b94cf..bae5e8b3 100644 --- a/cv/video-property-page.cpp +++ b/cv/video-property-page.cpp @@ -25,8 +25,6 @@ #include -#include - bool video_property_page::show_from_capture(cv::VideoCapture& cap, int /*index */) { return cap.set(cv::CAP_PROP_SETTINGS, 0); @@ -165,4 +163,3 @@ bool video_property_page::show_from_capture(cv::VideoCapture&, int idx) bool video_property_page::show(int) { return false; } bool video_property_page::show_from_capture(cv::VideoCapture&, int) { return false; } #endif - diff --git a/cv/video-property-page.hpp b/cv/video-property-page.hpp index 9e6b596f..c2b9525d 100644 --- a/cv/video-property-page.hpp +++ b/cv/video-property-page.hpp @@ -1,11 +1,6 @@ #pragma once #include - -#ifdef _WIN32 -# include -#endif - #include struct video_property_page final @@ -15,3 +10,4 @@ struct video_property_page final static bool show_from_capture(cv::VideoCapture& cap, int index); private: }; + -- cgit v1.2.3