 |
ITK
5.4.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkLogicOpsFunctors_h
19 #define itkLogicOpsFunctors_h
58 template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
78 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Self);
83 m_ForegroundValue = FG;
88 m_BackgroundValue = BG;
94 return (m_ForegroundValue);
99 return (m_BackgroundValue);
117 template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
132 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Self);
139 return this->m_ForegroundValue;
141 return this->m_BackgroundValue;
154 template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
169 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Self);
176 return this->m_ForegroundValue;
178 return this->m_BackgroundValue;
192 template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
206 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Self);
213 return this->m_ForegroundValue;
215 return this->m_BackgroundValue;
229 template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
244 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Self);
251 return this->m_ForegroundValue;
253 return this->m_BackgroundValue;
267 template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
282 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Self);
289 return this->m_ForegroundValue;
291 return this->m_BackgroundValue;
305 template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
320 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Self);
327 return this->m_ForegroundValue;
329 return this->m_BackgroundValue;
339 template <
typename TInput,
typename TOutput = TInput>
353 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
NOT);
360 return this->m_ForegroundValue;
362 return this->m_BackgroundValue;
371 template <
typename TInput1,
typename TInput2,
typename TInput3,
typename TOutput>
388 operator()(
const TInput1 & A,
const TInput2 & B,
const TInput3 & C)
const
392 return static_cast<TOutput>(B);
396 return static_cast<TOutput>(C);
Functor for > operation on images and constants.
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 TInput3 &C) const
TOutput operator()(const TInput &A) const
TOutput GetForegroundValue() const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Base class for some logic functors. Provides the Foreground and background setting methods.
Unary logical NOT functor.
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)
bool operator==(const Self &) const
bool operator==(const Self &) const
bool operator==(const Self &) const
void SetForegroundValue(const TOutput &FG)
TOutput m_ForegroundValue
bool operator==(const Self &) const
bool operator==(const NOT &) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
TOutput m_BackgroundValue
Functor for <= operation on images and constants.
Functor for == operation on images and constants.
bool operator==(const Self &) const
Return argument 2 if argument 1 is false, and argument 3 otherwise.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Functor for != operation on images and constants.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
TOutput GetBackgroundValue() const
bool operator==(const Self &) const
Functor for < operation on images and constants.
void SetBackgroundValue(const TOutput &BG)
bool operator==(const TernaryOperator &) const