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
b3e1a459
Commit
b3e1a459
authored
Oct 18, 2013
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enabled double in copyMakeBorder kernel
parent
2681cef5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
imgproc.cpp
modules/ocl/src/imgproc.cpp
+7
-1
imgproc_copymakeboder.cl
modules/ocl/src/opencl/imgproc_copymakeboder.cl
+7
-0
No files found.
modules/ocl/src/imgproc.cpp
View file @
b3e1a459
...
...
@@ -425,6 +425,12 @@ namespace cv
void
copyMakeBorder
(
const
oclMat
&
src
,
oclMat
&
dst
,
int
top
,
int
bottom
,
int
left
,
int
right
,
int
bordertype
,
const
Scalar
&
scalar
)
{
if
(
!
src
.
clCxt
->
supportsFeature
(
FEATURE_CL_DOUBLE
)
&&
src
.
depth
()
==
CV_64F
)
{
CV_Error
(
CV_OpenCLDoubleNotSupported
,
"Selected device does not support double"
);
return
;
}
oclMat
_src
=
src
;
CV_Assert
(
top
>=
0
&&
bottom
>=
0
&&
left
>=
0
&&
right
>=
0
);
...
...
@@ -469,7 +475,7 @@ namespace cv
break
;
if
(
bordertype_index
==
sizeof
(
__bordertype
)
/
sizeof
(
int
))
CV_Error
(
CV_StsBadArg
,
"
u
nsupported border type"
);
CV_Error
(
CV_StsBadArg
,
"
U
nsupported border type"
);
string
kernelName
=
"copymakeborder"
;
size_t
localThreads
[
3
]
=
{
16
,
16
,
1
};
...
...
modules/ocl/src/opencl/imgproc_copymakeboder.cl
View file @
b3e1a459
...
...
@@ -34,6 +34,13 @@
//
//
#
if
defined
(
DOUBLE_SUPPORT
)
#
ifdef
cl_khr_fp64
#
pragma
OPENCL
EXTENSION
cl_khr_fp64:enable
#
elif
defined
(
cl_amd_fp64
)
#
pragma
OPENCL
EXTENSION
cl_amd_fp64:enable
#
endif
#
endif
#
ifdef
BORDER_CONSTANT
//BORDER_CONSTANT:
iiiiii|abcdefgh|iiiiiii
...
...
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