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
6187b971
Commit
6187b971
authored
Jan 20, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed GPU switchable tests, changed default CC's for gpu module
parent
3c1227ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
CMakeLists.txt
CMakeLists.txt
+2
-2
meanshift.cpp
tests/gpu/src/meanshift.cpp
+6
-6
mssegmentation.cpp
tests/gpu/src/mssegmentation.cpp
+3
-3
No files found.
CMakeLists.txt
View file @
6187b971
...
...
@@ -707,8 +707,8 @@ if(WITH_CUDA)
set
(
HAVE_CUDA 1
)
message
(
STATUS
"CUDA detected: "
${
CUDA_VERSION
}
)
set
(
CUDA_ARCH_GPU
"1.
1 1.2 1.
3 2.0"
CACHE STRING
"Specify 'real' GPU architectures to build binaries for"
)
set
(
CUDA_ARCH_PTX
"1.1 1.3
2.0
"
CACHE STRING
"Specify 'virtual' PTX architectures to build PTX intermediate code for"
)
set
(
CUDA_ARCH_GPU
"1.3 2.0"
CACHE STRING
"Specify 'real' GPU architectures to build binaries for"
)
set
(
CUDA_ARCH_PTX
"1.1 1.3"
CACHE STRING
"Specify 'virtual' PTX architectures to build PTX intermediate code for"
)
# Architectures to be searched for in user's input
set
(
CUDA_ARCH_ALL 1.0 1.1 1.2 1.3 2.0 2.1
)
...
...
tests/gpu/src/meanshift.cpp
View file @
6187b971
...
...
@@ -59,10 +59,10 @@ struct CV_GpuMeanShiftTest : public CvTest
int
major
,
minor
;
cv
::
gpu
::
getComputeCapability
(
cv
::
gpu
::
getDevice
(),
major
,
minor
);
if
(
major
==
1
)
img_template
=
cv
::
imread
(
std
::
string
(
ts
->
get_data_path
())
+
"meanshift/con_result_CC1X.png"
);
else
if
(
cv
::
gpu
::
hasGreaterOrEqualVersion
(
2
,
0
)
&&
major
>=
2
)
img_template
=
cv
::
imread
(
std
::
string
(
ts
->
get_data_path
())
+
"meanshift/con_result.png"
);
else
img_template
=
cv
::
imread
(
std
::
string
(
ts
->
get_data_path
())
+
"meanshift/con_result_CC1X.png"
);
if
(
img
.
empty
()
||
img_template
.
empty
())
{
...
...
@@ -205,10 +205,10 @@ struct CV_GpuMeanShiftProcTest : public CvTest
int
major
,
minor
;
cv
::
gpu
::
getComputeCapability
(
cv
::
gpu
::
getDevice
(),
major
,
minor
);
if
(
major
==
1
)
fs
.
open
(
std
::
string
(
ts
->
get_data_path
())
+
"meanshift/spmap_CC1X.yaml"
,
cv
::
FileStorage
::
READ
);
else
if
(
cv
::
gpu
::
hasGreaterOrEqualVersion
(
2
,
0
)
&&
major
>=
2
)
fs
.
open
(
std
::
string
(
ts
->
get_data_path
())
+
"meanshift/spmap.yaml"
,
cv
::
FileStorage
::
READ
);
else
fs
.
open
(
std
::
string
(
ts
->
get_data_path
())
+
"meanshift/spmap_CC1X.yaml"
,
cv
::
FileStorage
::
READ
);
fs
[
"spmap"
]
>>
spmap_template
;
for
(
int
y
=
0
;
y
<
spmap
.
rows
;
++
y
)
{
...
...
tests/gpu/src/mssegmentation.cpp
View file @
6187b971
...
...
@@ -71,10 +71,10 @@ struct CV_GpuMeanShiftSegmentationTest : public CvTest {
{
stringstream
path
;
path
<<
ts
->
get_data_path
()
<<
"meanshift/cones_segmented_sp10_sr10_minsize"
<<
minsize
;
if
(
major
==
1
)
path
<<
"_CC1X.png"
;
else
if
(
cv
::
gpu
::
hasGreaterOrEqualVersion
(
2
,
0
)
&&
major
>=
2
)
path
<<
".png"
;
else
path
<<
"_CC1X.png"
;
Mat
dst
;
meanShiftSegmentation
((
GpuMat
)
img
,
dst
,
10
,
10
,
minsize
);
...
...
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