ITK  6.0.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>

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.

Public Types

using Self = LogicOpBase
 

Public Member Functions

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

Protected Attributes

TOutput m_BackgroundValue
 
TOutput m_ForegroundValue
 

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.

References itk::NumericTraits< T >::OneValue().

◆ ~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

◆ ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION()

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

◆ 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 73 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 104 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 103 of file itkLogicOpsFunctors.h.


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