15 #ifndef itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter_h
16 #define itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter_h
18 #include <itkBinaryFunctorImageFilter.h>
19 #include <itkNumericTraits.h>
31 template<
class TInput1,
class TInput2=TInput1,
class TOutput=TInput1 >
43 return !(*
this != other);
45 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
47 return static_cast<TOutput
>( A != 0 ? A : B );
58 template <
class TInputImage1,
class TInputImage2=TInputImage1,
class TOutputImage=TInputImage1>
61 BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,
62 Functor::AWhereNoneZeroOtherwiseB<typename TInputImage1::PixelType,
63 typename TInputImage2::PixelType,
64 typename TOutputImage::PixelType
72 typedef BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,
86 BinaryFunctorImageFilter);
88 #ifdef ITK_USE_CONCEPT_CHECKING
103 void operator=(
const Self&);
InjectSourceImageGreaterThanZeroIntoTargetImageFilter Self
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:71
bool operator!=(const AWhereNoneZeroOtherwiseB &) const
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:37
bool operator==(const AWhereNoneZeroOtherwiseB &other) const
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:41
Definition: niftkITKAffineResampleImage.cxx:74
Function object that given two inputs A and B, will return A if A is not zero, and otherwise return B...
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:32
SmartPointer< Self > Pointer
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:78
SmartPointer< const Self > ConstPointer
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:79
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::AWhereNoneZeroOtherwiseB< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:77
float PixelType
Definition: niftkBreastDCEandADC.cxx:88
virtual ~InjectSourceImageGreaterThanZeroIntoTargetImageFilter()
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:99
InjectSourceImageGreaterThanZeroIntoTargetImageFilter()
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:98
If first input is != 0, then the first input is copied to output, otherwise, the second input pixel i...
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:59
~AWhereNoneZeroOtherwiseB()
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:36
TOutput operator()(const TInput1 &A, const TInput2 &B)
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:45
AWhereNoneZeroOtherwiseB()
Definition: itkInjectSourceImageGreaterThanZeroIntoTargetImageFilter.h:35