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
b87cee8b
Commit
b87cee8b
authored
Dec 02, 2016
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7454 from terfendail:ovxhal_integral
parents
f84dc354
058f93d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
openvx_hal.hpp
3rdparty/openvx/include/openvx_hal.hpp
+28
-0
No files found.
3rdparty/openvx/include/openvx_hal.hpp
View file @
b87cee8b
...
...
@@ -1159,6 +1159,32 @@ inline int ovx_hal_cvtOnePlaneYUVtoBGR(const uchar * a, size_t astep, uchar * b,
return
CV_HAL_ERROR_OK
;
}
inline
int
ovx_hal_integral
(
int
depth
,
int
sdepth
,
int
,
const
uchar
*
a
,
size_t
astep
,
uchar
*
b
,
size_t
bstep
,
uchar
*
c
,
size_t
,
uchar
*
d
,
size_t
,
int
w
,
int
h
,
int
cn
)
{
if
(
depth
!=
CV_8U
||
sdepth
!=
CV_32S
||
c
!=
NULL
||
d
!=
NULL
||
cn
!=
1
)
return
CV_HAL_ERROR_NOT_IMPLEMENTED
;
try
{
vxContext
*
ctx
=
vxContext
::
getContext
();
vxImage
ia
(
*
ctx
,
a
,
astep
,
w
,
h
);
vxImage
ib
(
*
ctx
,
(
unsigned
int
*
)(
b
+
bstep
+
sizeof
(
unsigned
int
)),
bstep
,
w
,
h
);
vxErr
::
check
(
vxuIntegralImage
(
ctx
->
ctx
,
ia
.
img
,
ib
.
img
));
memset
(
b
,
0
,
(
w
+
1
)
*
sizeof
(
unsigned
int
));
b
+=
bstep
;
for
(
int
i
=
0
;
i
<
h
;
i
++
,
b
+=
bstep
)
{
*
((
unsigned
int
*
)
b
)
=
0
;
}
}
catch
(
vxErr
&
e
)
{
e
.
print
();
return
CV_HAL_ERROR_UNKNOWN
;
}
return
CV_HAL_ERROR_OK
;
}
//==================================================================================================
// functions redefinition
// ...
...
...
@@ -1241,5 +1267,7 @@ inline int ovx_hal_cvtOnePlaneYUVtoBGR(const uchar * a, size_t astep, uchar * b,
#define cv_hal_cvtBGRtoThreePlaneYUV ovx_hal_cvtBGRtoThreePlaneYUV
#undef cv_hal_cvtOnePlaneYUVtoBGR
#define cv_hal_cvtOnePlaneYUVtoBGR ovx_hal_cvtOnePlaneYUVtoBGR
#undef cv_hal_integral
#define cv_hal_integral ovx_hal_integral
#endif
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