ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Protected Attributes | List of all members
itk::Functor::LogicOpBase< TInput1, TInput2, TOutput > Class Template Reference

#include <itkLogicOpsFunctors.h>

+ Inheritance diagram for itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >:
+ Collaboration diagram for itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >:

Detailed Description

template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
class itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >

Base class for some logic functors. Provides the Foreground and background setting methods.

The derived classes can be used as follows:

using myFilterType = itk::BinaryFunctorImageFilter< myImageType1, myImageType2, myImageType3, itk::Functor::Equal2<myImageType1::PixelType, myImageType2::PixelType, myImageType3::PixelType> >;

using myFilterTypePointer = myFilterType::Pointer;

myFilterTypePointer filter = myFilterType::New();

filter->SetInput1( inputImageA ); filter->SetInput2( inputImageB );

filter->SetConstant1(3.0); filter->SetInput2(inputImageB);

Definition at line 58 of file itkLogicOpsFunctors.h.

Public Types

using Self = LogicOpBase
 

Public Member Functions

TOutput GetBackgroundValue () const
 
TOutput GetForegroundValue () const
 
 LogicOpBase ()
 
bool operator!= (const Self &) const
 
bool operator== (const Self &other) const
 
void SetBackgroundValue (const TOutput &BG)
 
void SetForegroundValue (const TOutput &FG)
 
 ~LogicOpBase ()=default
 

Protected Attributes

TOutput m_BackgroundValue
 
TOutput m_ForegroundValue
 

Member Typedef Documentation

template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
using itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::Self = LogicOpBase

Definition at line 61 of file itkLogicOpsFunctors.h.

Constructor & Destructor Documentation

template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::LogicOpBase ( )
inline

Definition at line 62 of file itkLogicOpsFunctors.h.

template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::~LogicOpBase ( )
default

Member Function Documentation

template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
TOutput itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::GetBackgroundValue ( ) const
inline
template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
TOutput itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::GetForegroundValue ( ) const
inline
template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
bool itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::operator!= ( const Self ) const
inline

Definition at line 71 of file itkLogicOpsFunctors.h.

template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
bool itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::operator== ( const Self other) const
inline

Definition at line 75 of file itkLogicOpsFunctors.h.

template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
void itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::SetBackgroundValue ( const TOutput &  BG)
inline
template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
void itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::SetForegroundValue ( const TOutput &  FG)
inline

Member Data Documentation

template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
TOutput itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::m_BackgroundValue
protected

Definition at line 100 of file itkLogicOpsFunctors.h.

template<typename TInput1, typename TInput2 = TInput1, typename TOutput = TInput1>
TOutput itk::Functor::LogicOpBase< TInput1, TInput2, TOutput >::m_ForegroundValue
protected

Definition at line 99 of file itkLogicOpsFunctors.h.


The documentation for this class was generated from the following file: