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
79384beb
Commit
79384beb
authored
Apr 15, 2014
by
vbystricky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning
parent
160c964e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
19 deletions
+7
-19
deriv.cpp
modules/imgproc/src/deriv.cpp
+7
-19
No files found.
modules/imgproc/src/deriv.cpp
View file @
79384beb
...
...
@@ -193,27 +193,15 @@ static bool IPPDerivScharr(InputArray _src, OutputArray _dst, int ddepth, int dx
{
if
((
0
>
dx
)
||
(
0
>
dy
)
||
(
1
!=
dx
+
dy
))
return
false
;
if
(
fabs
(
delta
)
>
0.0001
)
if
(
fabs
(
delta
)
>
FLT_EPSILON
)
return
false
;
IppiBorderType
ippiBorderType
;
switch
(
borderType
&
(
~
BORDER_ISOLATED
))
{
case
BORDER_REPLICATE
:
ippiBorderType
=
(
IppiBorderType
)
ippBorderRepl
;
break
;
case
BORDER_REFLECT
:
ippiBorderType
=
(
IppiBorderType
)
ippBorderMirrorR
;
break
;
case
BORDER_WRAP
:
ippiBorderType
=
(
IppiBorderType
)
ippBorderWrap
;
break
;
case
BORDER_REFLECT_101
:
ippiBorderType
=
(
IppiBorderType
)
ippBorderMirror
;
break
;
default:
IppiBorderType
ippiBorderType
=
ippiGetBorderType
(
borderType
&
(
~
BORDER_ISOLATED
));
if
((
ippBorderRepl
!=
ippiBorderType
)
&&
(
ippBorderMirrorR
!=
ippiBorderType
)
&&
(
ippBorderWrap
!=
ippiBorderType
)
&&
(
ippBorderMirror
!=
ippiBorderType
))
return
false
;
};
int
stype
=
_src
.
type
(),
sdepth
=
CV_MAT_DEPTH
(
stype
),
cn
=
CV_MAT_CN
(
stype
);
if
(
ddepth
<
0
)
...
...
@@ -293,7 +281,7 @@ static bool IPPDerivScharr(InputArray _src, OutputArray _dst, int ddepth, int dx
ippsFree
(
pBuffer
);
if
(
0
>
sts
)
return
false
;
if
((
CV_32F
==
dtype
)
&&
(
0.0001
<
fabs
(
scale
-
1.0
)))
if
((
CV_32F
==
dtype
)
&&
(
FLT_EPSILON
<
fabs
(
scale
-
1.0
)))
ippiMulC_32f_C1R
((
Ipp32f
*
)
dst
.
data
,
(
int
)
dst
.
step
,
(
Ipp32f
)
scale
,
(
Ipp32f
*
)
dst
.
data
,
(
int
)
dst
.
step
,
roiSize
);
return
true
;
}
...
...
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