From 097d01fd3d17f19cc55ca505680d4d3e7f2f6086 Mon Sep 17 00:00:00 2001 From: Tadas Baltrusaitis Date: Sun, 6 May 2018 20:46:18 +0100 Subject: [PATCH] Cleaning up includes. removing some C++ compilation warnings coming from dlib. --- exe/FaceLandmarkImg/FaceLandmarkImg.cpp | 16 ++-------------- exe/FaceLandmarkVid/FaceLandmarkVid.cpp | 13 ------------- exe/FaceLandmarkVid/FaceLandmarkVid.vcxproj.user | 3 +-- .../FaceLandmarkVidMulti.cpp | 9 --------- exe/FeatureExtraction/FeatureExtraction.cpp | 15 --------------- .../dlib/image_processing/shape_predictor.h | 2 +- lib/local/Utilities/src/Visualizer.cpp | 16 ++++++++-------- 7 files changed, 12 insertions(+), 62 deletions(-) diff --git a/exe/FaceLandmarkImg/FaceLandmarkImg.cpp b/exe/FaceLandmarkImg/FaceLandmarkImg.cpp index 869c7b7c..8d3a1f34 100644 --- a/exe/FaceLandmarkImg/FaceLandmarkImg.cpp +++ b/exe/FaceLandmarkImg/FaceLandmarkImg.cpp @@ -33,22 +33,10 @@ /////////////////////////////////////////////////////////////////////////////// // FaceLandmarkImg.cpp : Defines the entry point for the console application for detecting landmarks in images. -#include "LandmarkCoreIncludes.h" - -// System includes -#include - -// OpenCV includes -#include -#include -#include - -// Boost includes -#include -#include - #include +#include "LandmarkCoreIncludes.h" + #include #include diff --git a/exe/FaceLandmarkVid/FaceLandmarkVid.cpp b/exe/FaceLandmarkVid/FaceLandmarkVid.cpp index 41bcd0e8..4599931e 100644 --- a/exe/FaceLandmarkVid/FaceLandmarkVid.cpp +++ b/exe/FaceLandmarkVid/FaceLandmarkVid.cpp @@ -37,23 +37,10 @@ #include "LandmarkCoreIncludes.h" #include "GazeEstimation.h" -#include -#include - -// OpenCV includes -#include // Video write -#include // Video write -#include -#include - #include #include #include -// Boost includes -#include -#include - #define INFO_STREAM( stream ) \ std::cout << stream << std::endl diff --git a/exe/FaceLandmarkVid/FaceLandmarkVid.vcxproj.user b/exe/FaceLandmarkVid/FaceLandmarkVid.vcxproj.user index 950288a8..b6d80708 100644 --- a/exe/FaceLandmarkVid/FaceLandmarkVid.vcxproj.user +++ b/exe/FaceLandmarkVid/FaceLandmarkVid.vcxproj.user @@ -16,8 +16,7 @@ WindowsLocalDebugger - - + -device 0 WindowsLocalDebugger \ No newline at end of file diff --git a/exe/FaceLandmarkVidMulti/FaceLandmarkVidMulti.cpp b/exe/FaceLandmarkVidMulti/FaceLandmarkVidMulti.cpp index b713ad7f..2ab0b2ac 100644 --- a/exe/FaceLandmarkVidMulti/FaceLandmarkVidMulti.cpp +++ b/exe/FaceLandmarkVidMulti/FaceLandmarkVidMulti.cpp @@ -44,15 +44,6 @@ #include #include -#include -#include - -// OpenCV includes -#include // Video write -#include // Video write -#include -#include - #define INFO_STREAM( stream ) \ std::cout << stream << std::endl diff --git a/exe/FeatureExtraction/FeatureExtraction.cpp b/exe/FeatureExtraction/FeatureExtraction.cpp index 26ae945c..ab9ac1db 100644 --- a/exe/FeatureExtraction/FeatureExtraction.cpp +++ b/exe/FeatureExtraction/FeatureExtraction.cpp @@ -35,21 +35,6 @@ // FeatureExtraction.cpp : Defines the entry point for the feature extraction console application. -// System includes -#include -#include - -// OpenCV includes -#include // Video write -#include // Video write -#include -#include - -// Boost includes -#include -#include -#include - // Local includes #include "LandmarkCoreIncludes.h" diff --git a/lib/3rdParty/dlib/include/dlib/image_processing/shape_predictor.h b/lib/3rdParty/dlib/include/dlib/image_processing/shape_predictor.h index 748640d5..98953920 100644 --- a/lib/3rdParty/dlib/include/dlib/image_processing/shape_predictor.h +++ b/lib/3rdParty/dlib/include/dlib/image_processing/shape_predictor.h @@ -707,7 +707,7 @@ namespace dlib { using namespace impl; std::deque > parts; - parts.push_back(std::make_pair(0, samples.size())); + parts.push_back(std::make_pair((unsigned long)0, (unsigned long)samples.size())); impl::regression_tree tree; diff --git a/lib/local/Utilities/src/Visualizer.cpp b/lib/local/Utilities/src/Visualizer.cpp index f3f7516e..8fb4e6be 100644 --- a/lib/local/Utilities/src/Visualizer.cpp +++ b/lib/local/Utilities/src/Visualizer.cpp @@ -84,26 +84,26 @@ Visualizer::Visualizer(std::vector arguments) { if (arguments[i].compare("-verbose") == 0) { - vis_track = true; - vis_align = true; - vis_hog = true; - vis_aus = true; + this->vis_track = true; + this->vis_align = true; + this->vis_hog = true; + this->vis_aus = true; } else if (arguments[i].compare("-vis-align") == 0) { - vis_align = true; + this->vis_align = true; } else if (arguments[i].compare("-vis-hog") == 0) { - vis_hog = true; + this->vis_hog = true; } else if (arguments[i].compare("-vis-track") == 0) { - vis_track = true; + this->vis_track = true; } else if (arguments[i].compare("-vis-aus") == 0) { - vis_aus = true; + this->vis_aus = true; } }