ITK  5.2.0
Insight 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 >:

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
 

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 59 of file itkLogicOpsFunctors.h.

Member Typedef Documentation

◆ Self

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

Definition at line 62 of file itkLogicOpsFunctors.h.

Constructor & Destructor Documentation

◆ LogicOpBase()

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

Definition at line 63 of file itkLogicOpsFunctors.h.

◆ ~LogicOpBase()

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

Member Function Documentation

◆ GetBackgroundValue()

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

◆ GetForegroundValue()

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

◆ operator!=()

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

Definition at line 74 of file itkLogicOpsFunctors.h.

◆ operator==()

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 79 of file itkLogicOpsFunctors.h.

◆ SetBackgroundValue()

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

◆ SetForegroundValue()

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

Member Data Documentation

◆ m_BackgroundValue

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

Definition at line 108 of file itkLogicOpsFunctors.h.

◆ m_ForegroundValue

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

Definition at line 107 of file itkLogicOpsFunctors.h.


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