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
65076241
Commit
65076241
authored
Apr 18, 2014
by
vbystricky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add setIppErrorStatus()
parent
d17f40dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
deriv.cpp
modules/imgproc/src/deriv.cpp
+8
-4
No files found.
modules/imgproc/src/deriv.cpp
View file @
65076241
...
...
@@ -412,12 +412,14 @@ static bool IPPDerivScharr(InputArray _src, OutputArray _dst, int ddepth, int dx
}
#endif
static
bool
IPPDerivSobel
(
InputArray
_src
,
OutputArray
_dst
,
int
ddepth
,
int
dx
,
int
dy
,
int
ksize
,
double
scale
,
double
delta
)
static
bool
IPPDerivSobel
(
InputArray
_src
,
OutputArray
_dst
,
int
ddepth
,
int
dx
,
int
dy
,
int
ksize
,
double
scale
,
double
delta
,
int
borderType
)
{
if
(
ksize
!=
3
&&
ksize
!=
5
)
if
(
(
borderType
!=
BORDER_REPLICATE
)
||
(
3
!=
ksize
)
||
(
5
!=
ksize
)
)
return
false
;
if
(
fabs
(
delta
)
>
FLT_EPSILON
)
return
false
;
if
(
1
!=
_src
.
channels
())
return
false
;
int
bufSize
=
0
;
cv
::
AutoBuffer
<
char
>
buffer
;
...
...
@@ -579,11 +581,13 @@ void cv::Sobel( InputArray _src, OutputArray _dst, int ddepth, int dx, int dy,
{
if
(
IPPDerivScharr
(
_src
,
_dst
,
ddepth
,
dx
,
dy
,
scale
,
delta
,
borderType
))
return
;
setIppErrorStatus
();
}
else
if
(
0
<
ksize
&&
cn
==
1
&&
borderType
==
BORDER_REPLICATE
)
else
if
(
0
<
ksize
)
{
if
(
IPPDerivSobel
(
_src
,
_dst
,
ddepth
,
dx
,
dy
,
ksize
,
scale
,
delta
))
if
(
IPPDerivSobel
(
_src
,
_dst
,
ddepth
,
dx
,
dy
,
ksize
,
scale
,
delta
,
borderType
))
return
;
setIppErrorStatus
();
}
#endif
int
ktype
=
std
::
max
(
CV_32F
,
std
::
max
(
ddepth
,
sdepth
));
...
...
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