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
48f95d92
Commit
48f95d92
authored
Feb 07, 2014
by
Roman Donchenko
Committed by
OpenCV Buildbot
Feb 07, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2294 from jet47:fix-gpu-issues
parents
5a8363a4
5d099df5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
17 deletions
+13
-17
generalized_hough.cu
modules/gpu/src/cuda/generalized_hough.cu
+0
-2
generalized_hough.cpp
modules/gpu/src/generalized_hough.cpp
+0
-2
test_color.cpp
modules/gpu/test/test_color.cpp
+8
-8
test_core.cpp
modules/gpu/test/test_core.cpp
+3
-3
test_gpumat.cpp
modules/gpu/test/test_gpumat.cpp
+1
-1
test_hough.cpp
modules/gpu/test/test_hough.cpp
+1
-1
No files found.
modules/gpu/src/cuda/generalized_hough.cu
View file @
48f95d92
...
...
@@ -40,8 +40,6 @@
//
//M*/
#define CUDA_DISABLER
#if !defined CUDA_DISABLER
#include <thrust/device_ptr.h>
...
...
modules/gpu/src/generalized_hough.cpp
View file @
48f95d92
...
...
@@ -40,8 +40,6 @@
//
//M*/
#define CUDA_DISABLER
#include "precomp.hpp"
using
namespace
std
;
...
...
modules/gpu/test/test_color.cpp
View file @
48f95d92
...
...
@@ -715,7 +715,7 @@ GPU_TEST_P(CvtColor, BGR2YCrCb)
cv
::
Mat
dst_gold
;
cv
::
cvtColor
(
src
,
dst_gold
,
cv
::
COLOR_BGR2YCrCb
);
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
1.0
);
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
depth
==
CV_32F
?
1e-2
:
1
);
}
GPU_TEST_P
(
CvtColor
,
RGB2YCrCb
)
...
...
@@ -728,7 +728,7 @@ GPU_TEST_P(CvtColor, RGB2YCrCb)
cv
::
Mat
dst_gold
;
cv
::
cvtColor
(
src
,
dst_gold
,
cv
::
COLOR_RGB2YCrCb
);
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
1.0
);
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
depth
==
CV_32F
?
1e-2
:
1
);
}
GPU_TEST_P
(
CvtColor
,
BGR2YCrCb4
)
...
...
@@ -749,7 +749,7 @@ GPU_TEST_P(CvtColor, BGR2YCrCb4)
cv
::
split
(
h_dst
,
channels
);
cv
::
merge
(
channels
,
3
,
h_dst
);
EXPECT_MAT_NEAR
(
dst_gold
,
h_dst
,
1.0
);
EXPECT_MAT_NEAR
(
dst_gold
,
h_dst
,
depth
==
CV_32F
?
1e-2
:
1
);
}
GPU_TEST_P
(
CvtColor
,
RGBA2YCrCb4
)
...
...
@@ -771,7 +771,7 @@ GPU_TEST_P(CvtColor, RGBA2YCrCb4)
cv
::
split
(
h_dst
,
channels
);
cv
::
merge
(
channels
,
3
,
h_dst
);
EXPECT_MAT_NEAR
(
dst_gold
,
h_dst
,
1.0
);
EXPECT_MAT_NEAR
(
dst_gold
,
h_dst
,
depth
==
CV_32F
?
1e-2
:
1
);
}
GPU_TEST_P
(
CvtColor
,
YCrCb2BGR
)
...
...
@@ -840,7 +840,7 @@ GPU_TEST_P(CvtColor, YCrCb42RGBA)
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
1e-5
);
}
GPU_TEST_P
(
CvtColor
,
DISABLED_
BGR2HSV
)
GPU_TEST_P
(
CvtColor
,
BGR2HSV
)
{
if
(
depth
==
CV_16U
)
return
;
...
...
@@ -856,7 +856,7 @@ GPU_TEST_P(CvtColor, DISABLED_BGR2HSV)
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
depth
==
CV_32F
?
1e-2
:
1
);
}
GPU_TEST_P
(
CvtColor
,
DISABLED_
RGB2HSV
)
GPU_TEST_P
(
CvtColor
,
RGB2HSV
)
{
if
(
depth
==
CV_16U
)
return
;
...
...
@@ -872,7 +872,7 @@ GPU_TEST_P(CvtColor, DISABLED_RGB2HSV)
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
depth
==
CV_32F
?
1e-2
:
1
);
}
GPU_TEST_P
(
CvtColor
,
DISABLED_
RGB2HSV4
)
GPU_TEST_P
(
CvtColor
,
RGB2HSV4
)
{
if
(
depth
==
CV_16U
)
return
;
...
...
@@ -896,7 +896,7 @@ GPU_TEST_P(CvtColor, DISABLED_RGB2HSV4)
EXPECT_MAT_NEAR
(
dst_gold
,
h_dst
,
depth
==
CV_32F
?
1e-2
:
1
);
}
GPU_TEST_P
(
CvtColor
,
DISABLED_
RGBA2HSV4
)
GPU_TEST_P
(
CvtColor
,
RGBA2HSV4
)
{
if
(
depth
==
CV_16U
)
return
;
...
...
modules/gpu/test/test_core.cpp
View file @
48f95d92
...
...
@@ -422,7 +422,7 @@ PARAM_TEST_CASE(Subtract_Array, cv::gpu::DeviceInfo, cv::Size, std::pair<MatDept
}
};
GPU_TEST_P
(
Subtract_Array
,
DISABLED_
Accuracy
)
GPU_TEST_P
(
Subtract_Array
,
Accuracy
)
{
cv
::
Mat
mat1
=
randomMat
(
size
,
stype
);
cv
::
Mat
mat2
=
randomMat
(
size
,
stype
);
...
...
@@ -3582,7 +3582,7 @@ GPU_TEST_P(Normalize, WithOutMask)
cv
::
Mat
dst_gold
;
cv
::
normalize
(
src
,
dst_gold
,
alpha
,
beta
,
norm_type
,
type
);
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
1.0
);
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
type
<
CV_32F
?
1.0
:
1e-4
);
}
GPU_TEST_P
(
Normalize
,
WithMask
)
...
...
@@ -3598,7 +3598,7 @@ GPU_TEST_P(Normalize, WithMask)
dst_gold
.
setTo
(
cv
::
Scalar
::
all
(
0
));
cv
::
normalize
(
src
,
dst_gold
,
alpha
,
beta
,
norm_type
,
type
,
mask
);
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
1.0
);
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
type
<
CV_32F
?
1.0
:
1e-4
);
}
INSTANTIATE_TEST_CASE_P
(
GPU_Core
,
Normalize
,
testing
::
Combine
(
...
...
modules/gpu/test/test_gpumat.cpp
View file @
48f95d92
...
...
@@ -281,7 +281,7 @@ GPU_TEST_P(ConvertTo, WithOutScaling)
cv
::
Mat
dst_gold
;
src
.
convertTo
(
dst_gold
,
depth2
);
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
1.0
);
EXPECT_MAT_NEAR
(
dst_gold
,
dst
,
depth2
<
CV_32F
?
1.0
:
1e-4
);
}
}
...
...
modules/gpu/test/test_hough.cpp
View file @
48f95d92
...
...
@@ -189,7 +189,7 @@ PARAM_TEST_CASE(GeneralizedHough, cv::gpu::DeviceInfo, UseRoi)
{
};
GPU_TEST_P
(
GeneralizedHough
,
DISABLED_
POSITION
)
GPU_TEST_P
(
GeneralizedHough
,
POSITION
)
{
const
cv
::
gpu
::
DeviceInfo
devInfo
=
GET_PARAM
(
0
);
cv
::
gpu
::
setDevice
(
devInfo
.
deviceID
());
...
...
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