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
73ac5321
Commit
73ac5321
authored
Nov 28, 2017
by
elenagvo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix threshold HAL
parent
762138e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
hal_replacement.hpp
modules/imgproc/src/hal_replacement.hpp
+4
-2
thresh.cpp
modules/imgproc/src/thresh.cpp
+4
-3
No files found.
modules/imgproc/src/hal_replacement.hpp
View file @
73ac5321
...
...
@@ -652,14 +652,16 @@ inline int hal_ni_adaptiveThreshold(const uchar* src_data, size_t src_step, ucha
@param src_data,src_step Source image
@param dst_data,dst_step Destination image
@param width,height Source image dimensions
@param depth Depths of source and destination image
@param cn Number of channels
@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_threshold
Bin8u
(
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
;
}
inline
int
hal_ni_threshold
(
const
uchar
*
src_data
,
size_t
src_step
,
uchar
*
dst_data
,
size_t
dst_step
,
int
width
,
int
height
,
int
depth
,
int
cn
,
double
thresh
,
double
maxValue
,
int
thresholdType
)
{
return
CV_HAL_ERROR_NOT_IMPLEMENTED
;
}
//! @cond IGNORED
#define cv_hal_threshold
Bin8u hal_ni_thresholdBin8u
#define cv_hal_threshold
hal_ni_threshold
//! @endcond
//! @}
...
...
modules/imgproc/src/thresh.cpp
View file @
73ac5321
...
...
@@ -141,9 +141,6 @@ thresh_8u( const Mat& _src, Mat& _dst, uchar thresh, uchar maxval, int type )
return
;
#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)
CV_IPP_CHECK
()
{
...
...
@@ -1217,6 +1214,10 @@ public:
Mat
srcStripe
=
src
.
rowRange
(
row0
,
row1
);
Mat
dstStripe
=
dst
.
rowRange
(
row0
,
row1
);
CALL_HAL
(
threshold
,
cv_hal_threshold
,
srcStripe
.
data
,
srcStripe
.
step
,
dstStripe
.
data
,
dstStripe
.
step
,
srcStripe
.
cols
,
srcStripe
.
rows
,
srcStripe
.
depth
(),
srcStripe
.
channels
(),
thresh
,
maxval
,
thresholdType
);
if
(
srcStripe
.
depth
()
==
CV_8U
)
{
thresh_8u
(
srcStripe
,
dstStripe
,
(
uchar
)
thresh
,
(
uchar
)
maxval
,
thresholdType
);
...
...
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