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
e792ee89
Commit
e792ee89
authored
Mar 23, 2016
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6243 from mshabunin:hal_morph
parents
e547916e
83379695
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
0 deletions
+38
-0
private.hpp
modules/core/include/opencv2/core/private.hpp
+12
-0
hal.hpp
modules/imgproc/include/opencv2/imgproc/hal/hal.hpp
+16
-0
filterengine.hpp
modules/imgproc/src/filterengine.hpp
+2
-0
hal_replacement.hpp
modules/imgproc/src/hal_replacement.hpp
+8
-0
morph.cpp
modules/imgproc/src/morph.cpp
+0
-0
No files found.
modules/core/include/opencv2/core/private.hpp
View file @
e792ee89
...
...
@@ -221,6 +221,18 @@ static inline IppiSize ippiSize(const cv::Size & _size)
return
size
;
}
static
inline
IppiPoint
ippiPoint
(
const
cv
::
Point
&
_point
)
{
IppiPoint
point
=
{
_point
.
x
,
_point
.
y
};
return
point
;
}
static
inline
IppiPoint
ippiPoint
(
int
x
,
int
y
)
{
IppiPoint
point
=
{
x
,
y
};
return
point
;
}
static
inline
IppiBorderType
ippiGetBorderType
(
int
borderTypeNI
)
{
return
borderTypeNI
==
cv
::
BORDER_CONSTANT
?
ippBorderConst
:
...
...
modules/imgproc/include/opencv2/imgproc/hal/hal.hpp
View file @
e792ee89
...
...
@@ -44,6 +44,22 @@ struct CV_EXPORTS SepFilter2D
virtual
~
SepFilter2D
()
{}
};
struct
CV_EXPORTS
MorphContext
{
static
Ptr
<
MorphContext
>
create
(
int
op
,
int
src_type
,
int
dst_type
,
int
max_width
,
int
max_height
,
int
kernel_type
,
uchar
*
kernel_data
,
size_t
kernel_step
,
int
kernel_width
,
int
kernel_height
,
int
anchor_x
,
int
anchor_y
,
int
borderType
,
const
double
borderValue
[
4
],
int
iterations
,
bool
isSubmatrix
,
bool
allowInplace
);
virtual
void
apply
(
uchar
*
src_data
,
size_t
src_step
,
uchar
*
dst_data
,
size_t
dst_step
,
int
width
,
int
height
,
int
roi_width
,
int
roi_height
,
int
roi_x
,
int
roi_y
,
int
roi_width2
,
int
roi_height2
,
int
roi_x2
,
int
roi_y2
)
=
0
;
virtual
~
MorphContext
()
{}
};
//! @}
}}
...
...
modules/imgproc/src/filterengine.hpp
View file @
e792ee89
...
...
@@ -37,6 +37,8 @@ the use of this software, even if advised of the possibility of such damage.
#ifndef __OPENCV_IMGPROC_FILTERENGINE_HPP__
#define __OPENCV_IMGPROC_FILTERENGINE_HPP__
#include "opencv2/imgproc.hpp"
namespace
cv
{
...
...
modules/imgproc/src/hal_replacement.hpp
View file @
e792ee89
...
...
@@ -21,6 +21,14 @@ inline int hal_ni_sepFilterFree(cvhalFilter2D *) { return CV_HAL_ERROR_NOT_IMPLE
#define cv_hal_sepFilter hal_ni_sepFilter
#define cv_hal_sepFilterFree hal_ni_sepFilterFree
inline
int
hal_ni_morphInit
(
cvhalFilter2D
**
,
int
,
int
,
int
,
int
,
int
,
int
,
uchar
*
,
size_t
,
int
,
int
,
int
,
int
,
int
,
const
double
[
4
],
int
,
bool
,
bool
)
{
return
CV_HAL_ERROR_NOT_IMPLEMENTED
;
}
inline
int
hal_ni_morph
(
cvhalFilter2D
*
,
uchar
*
,
size_t
,
uchar
*
,
size_t
,
int
,
int
,
int
,
int
,
int
,
int
,
int
,
int
,
int
,
int
)
{
return
CV_HAL_ERROR_NOT_IMPLEMENTED
;
}
inline
int
hal_ni_morphFree
(
cvhalFilter2D
*
)
{
return
CV_HAL_ERROR_NOT_IMPLEMENTED
;
}
#define cv_hal_morphInit hal_ni_morphInit
#define cv_hal_morph hal_ni_morph
#define cv_hal_morphFree hal_ni_morphFree
#include "custom_hal.hpp"
#endif // OPENCV_IMGPROC_HAL_REPLACEMENT_HPP
modules/imgproc/src/morph.cpp
View file @
e792ee89
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