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
06738468
Commit
06738468
authored
Feb 26, 2014
by
Alexander Alekhin
Committed by
Andrey Pavlenko
Apr 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TAPI: stiching: add custom OpenCL kernels for MultiBandBlender
parent
c22d92c1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
1 deletion
+25
-1
ocl.hpp
modules/core/include/opencv2/core/ocl.hpp
+2
-0
utility.hpp
modules/core/include/opencv2/core/utility.hpp
+5
-0
ocl.cpp
modules/core/src/ocl.cpp
+18
-1
blenders.cpp
modules/stitching/src/blenders.cpp
+0
-0
multibandblend.cl
modules/stitching/src/opencl/multibandblend.cl
+0
-0
No files found.
modules/core/include/opencv2/core/ocl.hpp
View file @
06738468
...
@@ -598,6 +598,8 @@ CV_EXPORTS int predictOptimalVectorWidth(InputArray src1, InputArray src2 = noAr
...
@@ -598,6 +598,8 @@ CV_EXPORTS int predictOptimalVectorWidth(InputArray src1, InputArray src2 = noAr
InputArray
src4
=
noArray
(),
InputArray
src5
=
noArray
(),
InputArray
src6
=
noArray
(),
InputArray
src4
=
noArray
(),
InputArray
src5
=
noArray
(),
InputArray
src6
=
noArray
(),
InputArray
src7
=
noArray
(),
InputArray
src8
=
noArray
(),
InputArray
src9
=
noArray
());
InputArray
src7
=
noArray
(),
InputArray
src8
=
noArray
(),
InputArray
src9
=
noArray
());
CV_EXPORTS
void
buildOptionsAddMatrixDescription
(
String
&
buildOptions
,
const
String
&
name
,
InputArray
_m
);
class
CV_EXPORTS
Image2D
class
CV_EXPORTS
Image2D
{
{
public
:
public
:
...
...
modules/core/include/opencv2/core/utility.hpp
View file @
06738468
...
@@ -495,6 +495,11 @@ template<> inline std::string CommandLineParser::get<std::string>(const String&
...
@@ -495,6 +495,11 @@ template<> inline std::string CommandLineParser::get<std::string>(const String&
}
}
#endif // OPENCV_NOSTL
#endif // OPENCV_NOSTL
#if !defined(OPENCV_SKIP_SUPPRESS_WARNING) || !OPENCV_SKIP_SUPPRESS_WARNING
// Use this to bypass "warning C4127: conditional expression is constant"
template
<
typename
T
>
T
SuppressWarning
(
T
v
)
{
return
v
;
}
#endif
}
//namespace cv
}
//namespace cv
#endif //__OPENCV_CORE_UTILITY_H__
#endif //__OPENCV_CORE_UTILITY_H__
modules/core/src/ocl.cpp
View file @
06738468
...
@@ -4404,7 +4404,24 @@ int predictOptimalVectorWidth(InputArray src1, InputArray src2, InputArray src3,
...
@@ -4404,7 +4404,24 @@ int predictOptimalVectorWidth(InputArray src1, InputArray src2, InputArray src3,
#undef PROCESS_SRC
#undef PROCESS_SRC
/////////////////////////////////////////// Image2D ////////////////////////////////////////////////////
// TODO Make this as a method of OpenCL "BuildOptions" class
void
buildOptionsAddMatrixDescription
(
String
&
buildOptions
,
const
String
&
name
,
InputArray
_m
)
{
if
(
!
buildOptions
.
empty
())
buildOptions
+=
" "
;
int
type
=
_m
.
type
(),
depth
=
CV_MAT_DEPTH
(
type
);
buildOptions
+=
format
(
"-D %s_T=%s -D %s_T1=%s -D %s_CN=%d -D %s_TSIZE=%d -D %s_T1SIZE=%d -D %s_DEPTH=%d"
,
name
.
c_str
(),
ocl
::
typeToStr
(
type
),
name
.
c_str
(),
ocl
::
typeToStr
(
CV_MAKE_TYPE
(
depth
,
1
)),
name
.
c_str
(),
(
int
)
CV_MAT_CN
(
type
),
name
.
c_str
(),
(
int
)
CV_ELEM_SIZE
(
type
),
name
.
c_str
(),
(
int
)
CV_ELEM_SIZE1
(
type
),
name
.
c_str
(),
(
int
)
depth
);
}
struct
Image2D
::
Impl
struct
Image2D
::
Impl
{
{
...
...
modules/stitching/src/blenders.cpp
View file @
06738468
This diff is collapsed.
Click to expand it.
modules/stitching/src/opencl/multibandblend.cl
0 → 100644
View file @
06738468
This diff is collapsed.
Click to expand it.
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