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
36af97d0
Commit
36af97d0
authored
Apr 28, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3959 from jet47:gpu-fixes
parents
d705c651
cbdddb47
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
11 deletions
+17
-11
perf_denoising.cpp
modules/gpu/perf/perf_denoising.cpp
+4
-2
perf_video.cpp
modules/gpu/perf/perf_video.cpp
+6
-3
pyr_down.cu
modules/gpu/src/cuda/pyr_down.cu
+3
-3
NPP_staging.cu
modules/gpu/src/nvidia/NPP_staging/NPP_staging.cu
+2
-1
test_calib3d.cpp
modules/gpu/test/test_calib3d.cpp
+2
-2
No files found.
modules/gpu/perf/perf_denoising.cpp
View file @
36af97d0
...
...
@@ -99,7 +99,8 @@ PERF_TEST_P(Sz_Depth_Cn_KernelSz, Denoising_BilateralFilter,
DEF_PARAM_TEST
(
Sz_Depth_Cn_WinSz_BlockSz
,
cv
::
Size
,
MatDepth
,
MatCn
,
int
,
int
);
PERF_TEST_P
(
Sz_Depth_Cn_WinSz_BlockSz
,
Denoising_NonLocalMeans
,
// disabled, since it takes too much time
PERF_TEST_P
(
Sz_Depth_Cn_WinSz_BlockSz
,
DISABLED_Denoising_NonLocalMeans
,
Combine
(
GPU_DENOISING_IMAGE_SIZES
,
Values
<
MatDepth
>
(
CV_8U
),
GPU_CHANNELS_1_3
,
...
...
@@ -143,7 +144,8 @@ PERF_TEST_P(Sz_Depth_Cn_WinSz_BlockSz, Denoising_NonLocalMeans,
DEF_PARAM_TEST
(
Sz_Depth_Cn_WinSz_BlockSz
,
cv
::
Size
,
MatDepth
,
MatCn
,
int
,
int
);
PERF_TEST_P
(
Sz_Depth_Cn_WinSz_BlockSz
,
Denoising_FastNonLocalMeans
,
// disabled, since it takes too much time
PERF_TEST_P
(
Sz_Depth_Cn_WinSz_BlockSz
,
DISABLED_Denoising_FastNonLocalMeans
,
Combine
(
GPU_DENOISING_IMAGE_SIZES
,
Values
<
MatDepth
>
(
CV_8U
),
GPU_CHANNELS_1_3
,
...
...
modules/gpu/perf/perf_video.cpp
View file @
36af97d0
...
...
@@ -307,7 +307,8 @@ PERF_TEST_P(ImagePair_Gray_NPts_WinSz_Levels_Iters, Video_PyrLKOpticalFlowSparse
DEF_PARAM_TEST
(
ImagePair_WinSz_Levels_Iters
,
pair_string
,
int
,
int
,
int
);
PERF_TEST_P
(
ImagePair_WinSz_Levels_Iters
,
Video_PyrLKOpticalFlowDense
,
// Sanity test fails on Maxwell and CUDA 7.0
PERF_TEST_P
(
ImagePair_WinSz_Levels_Iters
,
DISABLED_Video_PyrLKOpticalFlowDense
,
Combine
(
Values
<
pair_string
>
(
make_pair
(
"gpu/opticalflow/frame0.png"
,
"gpu/opticalflow/frame1.png"
)),
Values
(
3
,
5
,
7
,
9
,
13
,
17
,
21
),
Values
(
1
,
3
),
...
...
@@ -463,7 +464,8 @@ void calcOpticalFlowBM(const cv::Mat& prev, const cv::Mat& curr,
cvCalcOpticalFlowBM
(
&
cvprev
,
&
cvcurr
,
bSize
,
shiftSize
,
maxRange
,
usePrevious
,
&
cvvelx
,
&
cvvely
);
}
PERF_TEST_P
(
ImagePair
,
Video_OpticalFlowBM
,
// disabled, since it takes too much time
PERF_TEST_P
(
ImagePair
,
DISABLED_Video_OpticalFlowBM
,
Values
<
pair_string
>
(
make_pair
(
"gpu/opticalflow/frame0.png"
,
"gpu/opticalflow/frame1.png"
)))
{
declare
.
time
(
400
);
...
...
@@ -541,7 +543,8 @@ PERF_TEST_P(ImagePair, DISABLED_Video_FastOpticalFlowBM,
DEF_PARAM_TEST_1
(
Video
,
string
);
PERF_TEST_P
(
Video
,
Video_FGDStatModel
,
// disabled, since it takes too much time
PERF_TEST_P
(
Video
,
DISABLED_Video_FGDStatModel
,
Values
(
string
(
"gpu/video/768x576.avi"
)))
{
const
int
numIters
=
10
;
...
...
modules/gpu/src/cuda/pyr_down.cu
View file @
36af97d0
...
...
@@ -114,7 +114,7 @@ namespace cv { namespace gpu { namespace device
sum = 0.0625f * src(b.idx_row_low (src_y - 2), b.idx_col_high(x));
sum = sum + 0.25f * src(b.idx_row_low (src_y - 1), b.idx_col_high(x));
sum = sum + 0.375f * src(
src_y
, b.idx_col_high(x));
sum = sum + 0.375f * src(
b.idx_row_high(src_y )
, b.idx_col_high(x));
sum = sum + 0.25f * src(b.idx_row_high(src_y + 1), b.idx_col_high(x));
sum = sum + 0.0625f * src(b.idx_row_high(src_y + 2), b.idx_col_high(x));
...
...
@@ -129,7 +129,7 @@ namespace cv { namespace gpu { namespace device
sum = 0.0625f * src(b.idx_row_low (src_y - 2), b.idx_col(left_x));
sum = sum + 0.25f * src(b.idx_row_low (src_y - 1), b.idx_col(left_x));
sum = sum + 0.375f * src(
src_y
, b.idx_col(left_x));
sum = sum + 0.375f * src(
b.idx_row_high(src_y )
, b.idx_col(left_x));
sum = sum + 0.25f * src(b.idx_row_high(src_y + 1), b.idx_col(left_x));
sum = sum + 0.0625f * src(b.idx_row_high(src_y + 2), b.idx_col(left_x));
...
...
@@ -144,7 +144,7 @@ namespace cv { namespace gpu { namespace device
sum = 0.0625f * src(b.idx_row_low (src_y - 2), b.idx_col_high(right_x));
sum = sum + 0.25f * src(b.idx_row_low (src_y - 1), b.idx_col_high(right_x));
sum = sum + 0.375f * src(
src_y
, b.idx_col_high(right_x));
sum = sum + 0.375f * src(
b.idx_row_high(src_y )
, b.idx_col_high(right_x));
sum = sum + 0.25f * src(b.idx_row_high(src_y + 1), b.idx_col_high(right_x));
sum = sum + 0.0625f * src(b.idx_row_high(src_y + 2), b.idx_col_high(right_x));
...
...
modules/gpu/src/nvidia/NPP_staging/NPP_staging.cu
View file @
36af97d0
...
...
@@ -280,7 +280,8 @@ __global__ void scanRows(T_in *d_src, Ncv32u texOffs, Ncv32u srcWidth, Ncv32u sr
__shared__ T_out shmem[NUM_SCAN_THREADS * 2];
__shared__ T_out carryElem;
carryElem = 0;
if (threadIdx.x == 0)
carryElem = 0;
__syncthreads();
while (numBuckets--)
...
...
modules/gpu/test/test_calib3d.cpp
View file @
36af97d0
...
...
@@ -298,8 +298,8 @@ GPU_TEST_P(SolvePnPRansac, Accuracy)
camera_mat
,
cv
::
Mat
(
1
,
8
,
CV_32F
,
cv
::
Scalar
::
all
(
0
)),
rvec
,
tvec
,
false
,
200
,
2.
f
,
100
,
&
inliers
);
ASSERT_LE
(
cv
::
norm
(
rvec
-
rvec_gold
),
1
e-3
);
ASSERT_LE
(
cv
::
norm
(
tvec
-
tvec_gold
),
1
e-3
);
ASSERT_LE
(
cv
::
norm
(
rvec
-
rvec_gold
),
2
e-3
);
ASSERT_LE
(
cv
::
norm
(
tvec
-
tvec_gold
),
2
e-3
);
}
INSTANTIATE_TEST_CASE_P
(
GPU_Calib3D
,
SolvePnPRansac
,
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