15 #ifndef itkExcludeImageFilter_h
16 #define itkExcludeImageFilter_h
17 #include <itkBinaryFunctorImageFilter.h>
18 #include <itkNumericTraits.h>
36 template<
class TInput1,
class TInput2=TInput1,
class TOutput=TInput1>
51 return !(*
this != other);
54 inline TOutput
operator() (
const TInput1 & A,
const TInput2 & B)
const
58 if( (A != 0) && (B == 0))
60 return static_cast<TOutput
>(1);
64 return static_cast<TOutput
>(0);
73 template <
class TInputImage1,
class TInputImage2=TInputImage1,
class TOutputImage=TInputImage1>
77 Functor::ConnectionBreak< typename TInputImage1::PixelType, typename TInputImage2::PixelType,
78 typename TOutputImage::PixelType > >
83 typedef BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,
95 BinaryFunctorImageFilter);
97 #ifdef ITK_USE_CONCEPT_CHECKING
99 itkConceptMacro(Input1Input2OutputAdditiveOperatorsCheck,
100 (Concept::AdditiveOperators<
typename TInputImage1::PixelType,
101 typename TInputImage2::PixelType,
112 void operator=(
const Self&);
virtual ~ExcludeImageFilter()
Definition: itkExcludeImageFilter.h:108
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Definition: itkExcludeImageFilter.h:54
SmartPointer< Self > Pointer
Definition: itkExcludeImageFilter.h:87
ExcludeImageFilter()
Definition: itkExcludeImageFilter.h:107
Definition: niftkITKAffineResampleImage.cxx:74
Definition: itkExcludeImageFilter.h:37
~ConnectionBreak()
Definition: itkExcludeImageFilter.h:42
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::ConnectionBreak< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
Definition: itkExcludeImageFilter.h:86
NumericTraits< TInput1 >::AccumulateType AccumulatorType
Definition: itkExcludeImageFilter.h:40
float PixelType
Definition: niftkBreastDCEandADC.cxx:88
ExcludeImageFilter Self
Definition: itkExcludeImageFilter.h:82
ConnectionBreak()
Definition: itkExcludeImageFilter.h:41
Performs the connection breaker algorithm as in "Interactive Algorithms for the segmentation and quan...
Definition: itkExcludeImageFilter.h:74
SmartPointer< const Self > ConstPointer
Definition: itkExcludeImageFilter.h:88
bool operator==(const ConnectionBreak &other) const
Definition: itkExcludeImageFilter.h:49
bool operator!=(const ConnectionBreak &) const
Definition: itkExcludeImageFilter.h:44