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
0c2ccd3b
Commit
0c2ccd3b
authored
Oct 26, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3366 from jet47:fix-gpu-cuda-7.0
parents
1692801f
84f33d05
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
11 deletions
+17
-11
color_detail.hpp
...es/gpu/include/opencv2/gpu/device/detail/color_detail.hpp
+0
-0
perf_imgproc.cpp
modules/gpu/perf/perf_imgproc.cpp
+3
-3
perf_video.cpp
modules/gpu/perf/perf_video.cpp
+1
-1
stereocsbp.cu
modules/gpu/src/cuda/stereocsbp.cu
+10
-4
test_calib3d.cpp
modules/gpu/test/test_calib3d.cpp
+1
-1
test_denoising.cpp
modules/gpu/test/test_denoising.cpp
+2
-2
No files found.
modules/gpu/include/opencv2/gpu/device/detail/color_detail.hpp
View file @
0c2ccd3b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
modules/gpu/perf/perf_imgproc.cpp
View file @
0c2ccd3b
...
...
@@ -1413,7 +1413,7 @@ PERF_TEST_P(Sz_Depth_Code, ImgProc_CvtColor,
TEST_CYCLE
()
cv
::
gpu
::
cvtColor
(
d_src
,
dst
,
info
.
code
,
info
.
dcn
);
GPU_SANITY_CHECK
(
dst
,
1e-
4
);
GPU_SANITY_CHECK
(
dst
,
1e-
2
);
}
else
{
...
...
@@ -1609,7 +1609,7 @@ PERF_TEST_P(Sz_Depth_Cn, ImgProc_ImagePyramidBuild,
cv
::
gpu
::
GpuMat
dst
;
d_pyr
.
getLayer
(
dst
,
dstSize
);
GPU_SANITY_CHECK
(
dst
);
GPU_SANITY_CHECK
(
dst
,
1e-3
);
}
else
{
...
...
@@ -1646,7 +1646,7 @@ PERF_TEST_P(Sz_Depth_Cn, ImgProc_ImagePyramidGetLayer,
TEST_CYCLE
()
d_pyr
.
getLayer
(
dst
,
dstSize
);
GPU_SANITY_CHECK
(
dst
);
GPU_SANITY_CHECK
(
dst
,
1e-3
);
}
else
{
...
...
modules/gpu/perf/perf_video.cpp
View file @
0c2ccd3b
...
...
@@ -143,7 +143,7 @@ PERF_TEST_P(ImagePair, Video_CreateOpticalFlowNeedleMap,
TEST_CYCLE
()
cv
::
gpu
::
createOpticalFlowNeedleMap
(
u
,
v
,
vertex
,
colors
);
GPU_SANITY_CHECK
(
vertex
,
1e-
6
);
GPU_SANITY_CHECK
(
vertex
,
1e-
5
);
GPU_SANITY_CHECK
(
colors
);
}
else
...
...
modules/gpu/src/cuda/stereocsbp.cu
View file @
0c2ccd3b
...
...
@@ -103,16 +103,22 @@ namespace cv { namespace gpu { namespace device
{
static __device__ __forceinline__ float compute(const uchar* left, const uchar* right)
{
return fmin(cdata_weight * ::abs((int)*left - *right), cdata_weight * cmax_data_term);
int l = *(left);
int r = *(right);
return fmin(cdata_weight * ::abs(l - r), cdata_weight * cmax_data_term);
}
};
template <> struct DataCostPerPixel<3>
{
static __device__ __forceinline__ float compute(const uchar* left, const uchar* right)
{
float tb = 0.114f * ::abs((int)left[0] - right[0]);
float tg = 0.587f * ::abs((int)left[1] - right[1]);
float tr = 0.299f * ::abs((int)left[2] - right[2]);
uchar3 l = *((const uchar3*)left);
uchar3 r = *((const uchar3*)right);
float tb = 0.114f * ::abs((int)l.x - r.x);
float tg = 0.587f * ::abs((int)l.y - r.y);
float tr = 0.299f * ::abs((int)l.z - r.z);
return fmin(cdata_weight * (tr + tg + tb), cdata_weight * cmax_data_term);
}
...
...
modules/gpu/test/test_calib3d.cpp
View file @
0c2ccd3b
...
...
@@ -158,7 +158,7 @@ GPU_TEST_P(StereoConstantSpaceBP, Regression)
cv
::
Mat
h_disp
(
disp
);
h_disp
.
convertTo
(
h_disp
,
disp_gold
.
depth
());
EXPECT_MAT_
NEAR
(
disp_gold
,
h_disp
,
1.0
);
EXPECT_MAT_
SIMILAR
(
disp_gold
,
h_disp
,
1e-4
);
}
INSTANTIATE_TEST_CASE_P
(
GPU_Calib3D
,
StereoConstantSpaceBP
,
ALL_DEVICES
);
...
...
modules/gpu/test/test_denoising.cpp
View file @
0c2ccd3b
...
...
@@ -134,8 +134,8 @@ GPU_TEST_P(BruteForceNonLocalMeans, Regression)
cv
::
resize
(
bgr_gold
,
bgr_gold
,
cv
::
Size
(
256
,
256
));
cv
::
resize
(
gray_gold
,
gray_gold
,
cv
::
Size
(
256
,
256
));
EXPECT_MAT_NEAR
(
bgr_gold
,
dbgr
,
1
e-4
);
EXPECT_MAT_NEAR
(
gray_gold
,
dgray
,
1
e-4
);
EXPECT_MAT_NEAR
(
bgr_gold
,
dbgr
,
1
);
EXPECT_MAT_NEAR
(
gray_gold
,
dgray
,
1
);
}
INSTANTIATE_TEST_CASE_P
(
GPU_Denoising
,
BruteForceNonLocalMeans
,
ALL_DEVICES
);
...
...
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