Into

Modules

Documentation

classPiiImage::MeanStdThresholdFunction

#include <PiiThresholding.h>

A function that calculates a local threshold t as , where r stands for relativeThreshold.

Inherits Pii::TernaryFunction< UnaryFunction::argument_type, double, double, BinaryFunction::result_type >

Description

The output of the function is thresholdFunc(transformFunc(pixel), t).

See also

Constructors and destructor

(
  • const BinaryFunction & thresholdFunc
  • const UnaryFunction & transformFunc
  • double relativeThreshold
)

Public member functions

BinaryFunction::result_type
(
  • typename UnaryFunction::argument_type pixel
  • double mu
  • double var
)
template<class BinaryFunction, class UnaryFunction>
MeanStdThresholdFunction< BinaryFunction, UnaryFunction >
(
  • const BinaryFunction & threshold
  • const UnaryFunction & transform
  • double r
)

Create a threshold function.

Function details

  • MeanStdThresholdFunction

    (
    • const BinaryFunction & thresholdFunc
    • const UnaryFunction & transformFunc
    • double relativeThreshold
    )
    [inline]
  • BinaryFunction::result_type operator()

    (
    • typename UnaryFunction::argument_type pixel
    • double mu
    • double var
    )
    [inline]
  • template<class BinaryFunction, class UnaryFunction>

    MeanStdThresholdFunction< BinaryFunction, UnaryFunction > meanStdThresholdFunction

    (
    • const BinaryFunction & threshold
    • const UnaryFunction & transform
    • double r
    )

    Create a threshold function.

Notes (0)

Add a note

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