classPiiImage::TwoLevelThresholdFunction
#include <PiiThresholding.h>
TwoLevelThresholdFunction compares its input argument to two thresholds and returns one if the argument is in between them (inclusive).
Inherits Pii::BinaryFunction< T, T, U >
Description
PiiMatrix<int> mat(1,9,1,2,3,4,5,6,7,8,9); mat.unaryOp(PiiImage::TwoLevelThresholdFunction<int>(5, 7)); // mat = 0 0 0 0 1 1 1 0 0
Constructors and destructor
|
(
Contruct a two-level threshold function that requires returns one iff the input value is between the given two values (inclusive). |
Public member functions
|
U
|
(
|
Function details
-
TwoLevelThresholdFunction
(- T lowThreshold
- T highThreshold
- U value = 1
[inline]Contruct a two-level threshold function that requires returns one iff the input value is between the given two values (inclusive).
-
U operator()
(- T value
[inline]
Add a note
Not a single note added yet. Be the first, add yours.