Into

Modules

Documentation

classPiiImage::InverseCutFunction

#include <PiiThresholding.h>

InverseCutFunction compares value to a threshold and outputs either value or threshold based on the comparison result.

Inherits Pii::BinaryFunction< T, T, U >

Description

You can use this struct for example with PiiMatrix<T>::binaryOp():

 int threshold = 5;
 PiiMatrix<int> mat(1,9,1,2,3,4,5,6,7,8,9);
 mat.binaryOp(PiiImage::InverseCutFunction<int>(), threshold);

 // mat = 5 5 5 5 5 6 7 8 9

Public member functions

U
(
  • T value
  • T threshold
)

Function details

  • U operator()

    (
    • T value
    • T threshold
    )
    [inline]
Notes (0)

Add a note

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