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
c95bc0c7
Commit
c95bc0c7
authored
7 years ago
by
elenagvo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add HAL for threshold
parent
11ddb933
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
hal_replacement.hpp
modules/imgproc/src/hal_replacement.hpp
+15
-0
thresh.cpp
modules/imgproc/src/thresh.cpp
+3
-0
No files found.
modules/imgproc/src/hal_replacement.hpp
View file @
c95bc0c7
...
@@ -647,6 +647,21 @@ inline int hal_ni_adaptiveThreshold(const uchar* src_data, size_t src_step, ucha
...
@@ -647,6 +647,21 @@ inline int hal_ni_adaptiveThreshold(const uchar* src_data, size_t src_step, ucha
#define cv_hal_adaptiveThreshold hal_ni_adaptiveThreshold
#define cv_hal_adaptiveThreshold hal_ni_adaptiveThreshold
//! @endcond
//! @endcond
/**
@brief Calculates fixed-level threshold to each array element
@param src_data,src_step Source image
@param dst_data,dst_step Destination image
@param width,height Source image dimensions
@param thresh Threshold value
@param maxValue Value assigned to the pixels for which the condition is satisfied
@param thresholdType Thresholding type
*/
inline
int
hal_ni_thresholdBin8u
(
const
uchar
*
src_data
,
size_t
src_step
,
uchar
*
dst_data
,
size_t
dst_step
,
int
width
,
int
height
,
double
thresh
,
double
maxValue
,
int
thresholdType
)
{
return
CV_HAL_ERROR_NOT_IMPLEMENTED
;
}
//! @cond IGNORED
#define cv_hal_thresholdBin8u hal_ni_thresholdBin8u
//! @endcond
//! @}
//! @}
#if defined __GNUC__
#if defined __GNUC__
...
...
This diff is collapsed.
Click to expand it.
modules/imgproc/src/thresh.cpp
View file @
c95bc0c7
...
@@ -141,6 +141,9 @@ thresh_8u( const Mat& _src, Mat& _dst, uchar thresh, uchar maxval, int type )
...
@@ -141,6 +141,9 @@ thresh_8u( const Mat& _src, Mat& _dst, uchar thresh, uchar maxval, int type )
return
;
return
;
#endif
#endif
CALL_HAL
(
thresholdBin
,
cv_hal_thresholdBin8u
,
_src
.
data
,
src_step
,
_dst
.
data
,
dst_step
,
roi
.
width
,
roi
.
height
,
thresh
,
maxval
,
type
);
#if defined(HAVE_IPP)
#if defined(HAVE_IPP)
CV_IPP_CHECK
()
CV_IPP_CHECK
()
{
{
...
...
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