mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
removed cv_config
This commit is contained in:
parent
07a4e52093
commit
ee3101ba1c
@ -3,7 +3,7 @@
|
||||
#pragma warning(disable : 4100)
|
||||
#endif
|
||||
|
||||
#include "cvconfig.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user