classPiiImage::InverseTwoLevelThresholdFunction
#include <PiiThresholding.h>
InverseTwoLevelThresholdFunction works analogously to TwoLevelThresholdFunction, but inverses the result.
Inherits Pii::BinaryFunction< T, T, U >
Description
PiiMatrix<int> mat(1,9,1,2,3,4,5,6,7,8,9); mat.unaryOp(PiiImage::InverseTwoLevelThresholdFunction<int>(5, 7)); // mat = 1 1 1 1 0 0 0 1 1
Constructors and destructor
|
(
Contruct a two-level threshold function that requires returns zero iff the input value is between the given two values (inclusive). |
Public member functions
|
U
|
(
|
Function details
-
InverseTwoLevelThresholdFunction
(- T lowThreshold
- T highThreshold
- U value = 1
[inline]Contruct a two-level threshold function that requires returns zero 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.