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
d5c99a07
Commit
d5c99a07
authored
Jun 23, 2014
by
Alexander Karsakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use fma only for Intel devices
parent
eeddda47
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
pyr_down.cl
modules/imgproc/src/opencl/pyr_down.cl
+0
-0
pyramids.cpp
modules/imgproc/src/pyramids.cpp
+4
-4
No files found.
modules/imgproc/src/opencl/pyr_down.cl
View file @
d5c99a07
This diff is collapsed.
Click to expand it.
modules/imgproc/src/pyramids.cpp
View file @
d5c99a07
...
@@ -424,19 +424,19 @@ static bool ocl_pyrDown( InputArray _src, OutputArray _dst, const Size& _dsz, in
...
@@ -424,19 +424,19 @@ static bool ocl_pyrDown( InputArray _src, OutputArray _dst, const Size& _dsz, in
int
float_depth
=
depth
==
CV_64F
?
CV_64F
:
CV_32F
;
int
float_depth
=
depth
==
CV_64F
?
CV_64F
:
CV_32F
;
const
int
local_size
=
256
;
const
int
local_size
=
256
;
int
kercn
=
1
;
int
kercn
=
1
;
if
(
depth
==
CV_8U
&&
cn
==
1
&&
float_depth
==
CV_32F
)
if
(
depth
==
CV_8U
&&
float_depth
==
CV_32F
&&
cn
==
1
&&
ocl
::
Device
::
getDefault
().
isIntel
()
)
kercn
=
4
;
kercn
=
4
;
const
char
*
const
borderMap
[]
=
{
"BORDER_CONSTANT"
,
"BORDER_REPLICATE"
,
"BORDER_REFLECT"
,
"BORDER_WRAP"
,
const
char
*
const
borderMap
[]
=
{
"BORDER_CONSTANT"
,
"BORDER_REPLICATE"
,
"BORDER_REFLECT"
,
"BORDER_WRAP"
,
"BORDER_REFLECT_101"
};
"BORDER_REFLECT_101"
};
char
cvt
[
2
][
50
];
char
cvt
[
2
][
50
];
String
buildOptions
=
format
(
String
buildOptions
=
format
(
"-D T=%s -D FT=%s -D convertToT=%s -D convertToFT=%s%s "
"-D T=%s -D FT=%s -D convertToT=%s -D convertToFT=%s%s "
"-D T1=%s -D cn=%d -D kercn=%d -D %s -D LOCAL_SIZE=%d"
,
"-D T1=%s -D cn=%d -D kercn=%d -D
fdepth=%d -D
%s -D LOCAL_SIZE=%d"
,
ocl
::
typeToStr
(
type
),
ocl
::
typeToStr
(
CV_MAKETYPE
(
float_depth
,
cn
)),
ocl
::
typeToStr
(
type
),
ocl
::
typeToStr
(
CV_MAKETYPE
(
float_depth
,
cn
)),
ocl
::
convertTypeStr
(
float_depth
,
depth
,
cn
,
cvt
[
0
]),
ocl
::
convertTypeStr
(
float_depth
,
depth
,
cn
,
cvt
[
0
]),
ocl
::
convertTypeStr
(
depth
,
float_depth
,
cn
,
cvt
[
1
]),
ocl
::
convertTypeStr
(
depth
,
float_depth
,
cn
,
cvt
[
1
]),
doubleSupport
?
" -D DOUBLE_SUPPORT"
:
""
,
doubleSupport
?
" -D DOUBLE_SUPPORT"
:
""
,
ocl
::
typeToStr
(
depth
),
ocl
::
typeToStr
(
depth
),
cn
,
kercn
,
borderMap
[
borderType
],
local_size
cn
,
kercn
,
float_depth
,
borderMap
[
borderType
],
local_size
);
);
ocl
::
Kernel
k
(
"pyrDown"
,
ocl
::
imgproc
::
pyr_down_oclsrc
,
buildOptions
);
ocl
::
Kernel
k
(
"pyrDown"
,
ocl
::
imgproc
::
pyr_down_oclsrc
,
buildOptions
);
if
(
k
.
empty
())
if
(
k
.
empty
())
...
...
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