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
ce5bae1c
Commit
ce5bae1c
authored
Jun 17, 2014
by
Alexander Alekhin
Committed by
OpenCV Buildbot
Jun 17, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2871 from vbystricky:oclopt_integral
parents
1db9cc3f
606df046
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
integral_sum.cl
modules/imgproc/src/opencl/integral_sum.cl
+0
-0
sumpixels.cpp
modules/imgproc/src/sumpixels.cpp
+4
-4
No files found.
modules/imgproc/src/opencl/integral_sum.cl
View file @
ce5bae1c
This diff is collapsed.
Click to expand it.
modules/imgproc/src/sumpixels.cpp
View file @
ce5bae1c
...
...
@@ -254,19 +254,19 @@ static bool ocl_integral( InputArray _src, OutputArray _sum, int sdepth )
UMat
src
=
_src
.
getUMat
(),
t_sum
(
t_size
,
sdepth
),
sum
=
_sum
.
getUMat
();
t_sum
=
t_sum
(
Range
::
all
(),
Range
(
0
,
size
.
height
));
int
offset
=
(
int
)
src
.
offset
/
vlen
,
pre_invalid
=
(
int
)
src
.
offset
%
vlen
;
int
vcols
=
(
pre_invalid
+
src
.
cols
+
vlen
-
1
)
/
vlen
;
int
offset
=
(
int
)
src
.
offset
/
vlen
;
int
vcols
=
(
src
.
cols
+
vlen
-
1
)
/
vlen
;
int
sum_offset
=
(
int
)
sum
.
offset
/
vlen
;
k1
.
args
(
ocl
::
KernelArg
::
PtrReadOnly
(
src
),
ocl
::
KernelArg
::
PtrWriteOnly
(
t_sum
),
offset
,
pre_invalid
,
src
.
rows
,
src
.
cols
,
(
int
)
src
.
step
,
(
int
)
t_sum
.
step
);
offset
,
src
.
rows
,
src
.
cols
,
(
int
)
src
.
step
,
(
int
)
t_sum
.
step
);
size_t
gt
=
((
vcols
+
1
)
/
2
)
*
256
,
lt
=
256
;
if
(
!
k1
.
run
(
1
,
&
gt
,
&
lt
,
false
))
return
false
;
ocl
::
Kernel
k2
(
"integral_sum_rows"
,
ocl
::
imgproc
::
integral_sum_oclsrc
,
format
(
"-D sdepth=%d"
,
sdepth
));
k2
.
args
(
ocl
::
KernelArg
::
PtrRead
Write
(
t_sum
),
ocl
::
KernelArg
::
PtrWriteOnly
(
sum
),
k2
.
args
(
ocl
::
KernelArg
::
PtrRead
Only
(
t_sum
),
ocl
::
KernelArg
::
PtrWriteOnly
(
sum
),
t_sum
.
rows
,
t_sum
.
cols
,
(
int
)
t_sum
.
step
,
(
int
)
sum
.
step
,
sum_offset
);
size_t
gt2
=
t_sum
.
cols
*
32
,
lt2
=
256
;
...
...
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