Into

Modules

Documentation

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

(
  • T lowThreshold
  • T highThreshold
  • U value = 1
)

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
(
  • T value
)

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]
Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.