18 #ifndef itkLogicOpsFunctors_h
19 #define itkLogicOpsFunctors_h
57 template<
typename TInput1,
typename TInput2=TInput1,
typename TOutput=TInput1 >
77 return !(*
this != other);
113 template<
typename TInput1,
typename TInput2=TInput1,
typename TOutput=TInput1 >
130 return !(*
this != other);
132 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
134 if( A == static_cast<TInput1>(B) )
151 template<
typename TInput1,
typename TInput2=TInput1,
typename TOutput=TInput1 >
165 return !(*
this != other);
167 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
187 template<
typename TInput1,
typename TInput2=TInput1,
typename TOutput=TInput1 >
201 return !(*
this != other);
203 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
222 template<
typename TInput1,
typename TInput2=TInput1,
typename TOutput=TInput1 >
235 return !(*
this != other);
237 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
255 template<
typename TInput1,
typename TInput2=TInput1,
typename TOutput=TInput1 >
269 return !(*
this != other);
271 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
290 template<
typename TInput1,
typename TInput2=TInput1,
typename TOutput=TInput1 >
303 return !(*
this != other);
305 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
TOutput m_ForegroundValue
TOutput operator()(const TInput1 &A, const TInput2 &B)
bool operator!=(const Self &) const
bool operator==(const Self &other) const
bool operator!=(const Self &) const
void SetBackgroundValue(const TOutput &BG)
bool operator!=(const Self &) const
bool operator==(const Self &other) const
Functor for != operation on images and constants.
TOutput operator()(const TInput1 &A, const TInput2 &B)
bool operator!=(const Self &) const
TOutput operator()(const TInput1 &A, const TInput2 &B)
TOutput m_BackgroundValue
TOutput operator()(const TInput1 &A, const TInput2 &B)
TOutput operator()(const TInput1 &A, const TInput2 &B)
Functor for == operation on images and constants.
bool operator!=(const Self &) const
TOutput GetBackgroundValue() const
Functor for > operation on images and constants.
Functor for >= operation on images and constants.
bool operator!=(const Self &) const
Functor for < operation on images and constants.
bool operator==(const Self &other) const
void SetForegroundValue(const TOutput &FG)
Base class for some logic functors. Provides the Foreground and background setting methods...
TOutput operator()(const TInput1 &A, const TInput2 &B)
bool operator==(const Self &other) const
bool operator==(const Self &other) const
bool operator==(const Self &other) const
Functor for <= operation on images and constants.
bool operator==(const Self &other) const
TOutput GetForegroundValue() const
bool operator!=(const Self &) const