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
762138e7
Commit
762138e7
authored
Nov 28, 2017
by
elenagvo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
define adaptiveMethod and thresholdType for HAL
parent
c95bc0c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
interface.h
modules/imgproc/include/opencv2/imgproc/hal/interface.h
+20
-0
thresh.cpp
modules/imgproc/src/thresh.cpp
+1
-1
No files found.
modules/imgproc/include/opencv2/imgproc/hal/interface.h
View file @
762138e7
...
...
@@ -21,6 +21,26 @@
#define CV_HAL_MORPH_DILATE 1
//! @}
//! @name Threshold types
//! @sa cv::ThresholdTypes
//! @{
#define CV_HAL_THRESH_BINARY 0
#define CV_HAL_THRESH_BINARY_INV 1
#define CV_HAL_THRESH_TRUNC 2
#define CV_HAL_THRESH_TOZERO 3
#define CV_HAL_THRESH_TOZERO_INV 4
#define CV_HAL_THRESH_MASK 7
#define CV_HAL_THRESH_OTSU 8
#define CV_HAL_THRESH_TRIANGLE 16
//! @}
//! @name Adaptive threshold algorithm
//! @sa cv::AdaptiveThresholdTypes
//! @{
#define CV_HAL_ADAPTIVE_THRESH_MEAN_C 0
#define CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C 1
//! @}
//! @}
#endif
modules/imgproc/src/thresh.cpp
View file @
762138e7
...
...
@@ -1549,7 +1549,7 @@ void cv::adaptiveThreshold( InputArray _src, OutputArray _dst, double maxValue,
Mat
srcfloat
,
meanfloat
;
src
.
convertTo
(
srcfloat
,
CV_32F
);
meanfloat
=
srcfloat
;
GaussianBlur
(
srcfloat
,
meanfloat
,
Size
(
blockSize
,
blockSize
),
0
,
0
,
BORDER_REPLICATE
);
GaussianBlur
(
srcfloat
,
meanfloat
,
Size
(
blockSize
,
blockSize
),
0
,
0
,
BORDER_REPLICATE
|
BORDER_ISOLATED
);
meanfloat
.
convertTo
(
mean
,
src
.
type
());
}
else
...
...
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