From: Anatoly Baksheev Date: Thu, 9 Jun 2011 08:25:36 +0000 (+0000) Subject: removed cv_config X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~7066 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee3101ba1c1bac6e3e3794def8d4502c998886e0;p=platform%2Fupstream%2Fopencv.git removed cv_config --- diff --git a/samples/gpu/cascadeclassifier.cpp b/samples/gpu/cascadeclassifier.cpp index fbf9df7..7bb8983 100644 --- a/samples/gpu/cascadeclassifier.cpp +++ b/samples/gpu/cascadeclassifier.cpp @@ -3,7 +3,7 @@ #pragma warning(disable : 4100) #endif -#include "cvconfig.h" + #include #include #include "opencv2/contrib/contrib.hpp" @@ -16,14 +16,6 @@ using namespace std; using namespace cv; using namespace cv::gpu; -#if !defined(HAVE_CUDA) -int main(int argc, const char **argv) -{ - cout << "Please compile the library with CUDA support" << endl; - return -1; -} -#else - void help() { @@ -105,7 +97,7 @@ void displayState(Mat &canvas, bool bHelp, bool bGpu, bool bLargestFace, bool bF int main(int argc, const char *argv[]) -{ +{ if (argc != 3) { return help(), -1; @@ -277,6 +269,4 @@ int main(int argc, const char *argv[]) } return 0; -} - -#endif //!defined(HAVE_CUDA) +} \ No newline at end of file