18#ifndef itkLogicOpsFunctors_h
19#define itkLogicOpsFunctors_h
56template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
113template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
147template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
182template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
217template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
252template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
287template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
318template <
typename TInput,
typename TOutput = TInput>
346template <
typename TInput1,
typename TInput2,
typename TInput3,
typename TOutput>
359 operator()(
const TInput1 & A,
const TInput2 & B,
const TInput3 & C)
const
363 return static_cast<TOutput
>(B);
366 return static_cast<TOutput
>(C);
Functor for == operation on images and constants.
bool operator==(const Self &) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Functor for >= operation on images and constants.
bool operator==(const Self &) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
Functor for > operation on images and constants.
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator==(const Self &) const
Functor for <= operation on images and constants.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator==(const Self &) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
Functor for < operation on images and constants.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator==(const Self &) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
TOutput m_ForegroundValue
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
bool operator==(const Self &) const
void SetForegroundValue(const TOutput &FG)
TOutput m_BackgroundValue
void SetBackgroundValue(const TOutput &BG)
TOutput GetForegroundValue() const
TOutput GetBackgroundValue() const
Unary logical NOT functor.
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(NOT)
TOutput operator()(const TInput &A) const
bool operator==(const NOT &) const
Functor for != operation on images and constants.
bool operator==(const Self &) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Return argument 2 if argument 1 is false, and argument 3 otherwise.
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(TernaryOperator)
bool operator==(const TernaryOperator &) const
TOutput operator()(const TInput1 &A, const TInput2 &B, const TInput3 &C) const
Define additional traits for native types such as int or float.
bool ExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Return the result of an exact comparison between two scalar values of potentially different types.
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....