Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
e3b3982d
Commit
e3b3982d
authored
Feb 21, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added check into opencv_test_gpu: whether OpenCV was compiled with CUDA or not
parent
58cb6c26
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
test_main.cpp
modules/gpu/test/test_main.cpp
+12
-4
test_meanshift.cpp
modules/gpu/test/test_meanshift.cpp
+1
-5
test_precomp.hpp
modules/gpu/test/test_precomp.hpp
+1
-0
No files found.
modules/gpu/test/test_main.cpp
View file @
e3b3982d
#include "test_precomp.hpp"
#include "test_precomp.hpp"
CV_TEST_MAIN
(
"gpu"
)
int
main
(
int
argc
,
char
**
argv
)
{
// Run test with --gtest_catch_exceptions flag to avoid runtime errors in
cvtest
::
TS
::
ptr
()
->
init
(
"gpu"
);
// the case when there is no GPU
::
testing
::
InitGoogleTest
(
&
argc
,
argv
);
#ifdef HAVE_CUDA
return
RUN_ALL_TESTS
();
#else
std
::
cerr
<<
"opencv_test_gpu: OpenCV was compiled without GPU support
\n
"
;
return
-
1
;
#endif
}
\ No newline at end of file
modules/gpu/test/test_meanshift.cpp
View file @
e3b3982d
...
@@ -125,11 +125,7 @@ struct CV_GpuMeanShiftTest : public cvtest::BaseTest
...
@@ -125,11 +125,7 @@ struct CV_GpuMeanShiftTest : public cvtest::BaseTest
};
};
/////////////////////////////////////////////////////////////////////////////
TEST
(
meanShift
,
accuracy
)
{
CV_GpuMeanShiftTest
test
;
test
.
safe_run
();
}
/////////////////// tests registration /////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
CV_GpuMeanShiftTest
CV_GpuMeanShift_test
;
struct
CV_GpuMeanShiftProcTest
:
public
cvtest
::
BaseTest
struct
CV_GpuMeanShiftProcTest
:
public
cvtest
::
BaseTest
{
{
...
...
modules/gpu/test/test_precomp.hpp
View file @
e3b3982d
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#define __OPENCV_TEST_PRECOMP_HPP__
#define __OPENCV_TEST_PRECOMP_HPP__
#include <limits>
#include <limits>
#include <cvconfig.h>
#include "opencv2/core/core.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/calib3d/calib3d.hpp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment