15 #ifndef itkCropTargetImageWhereSourceImageNonZero_h
16 #define itkCropTargetImageWhereSourceImageNonZero_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 ? B : 0 );
57 template <
class TInputImage1,
class TInputImage2=TInputImage1,
class TOutputImage=TInputImage1>
60 BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,
61 Functor::BWhereANonZeroOtherwiseZero<typename TInputImage1::PixelType,
62 typename TInputImage2::PixelType,
63 typename TOutputImage::PixelType
71 typedef BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,
85 BinaryFunctorImageFilter);
87 #ifdef ITK_USE_CONCEPT_CHECKING
102 void operator=(
const Self&);
~BWhereANonZeroOtherwiseZero()
Definition: itkCropTargetImageWhereSourceImageNonZero.h:36
Crops the target (second input) where the source image (first input) is non zero. ...
Definition: itkCropTargetImageWhereSourceImageNonZero.h:58
BWhereANonZeroOtherwiseZero()
Definition: itkCropTargetImageWhereSourceImageNonZero.h:35
Definition: niftkITKAffineResampleImage.cxx:74
TOutput operator()(const TInput1 &A, const TInput2 &B)
Definition: itkCropTargetImageWhereSourceImageNonZero.h:45
bool operator==(const BWhereANonZeroOtherwiseZero &other) const
Definition: itkCropTargetImageWhereSourceImageNonZero.h:41
bool operator!=(const BWhereANonZeroOtherwiseZero &) const
Definition: itkCropTargetImageWhereSourceImageNonZero.h:37
CropTargetImageWhereSourceImageNonZeroImageFilter()
Definition: itkCropTargetImageWhereSourceImageNonZero.h:97
CropTargetImageWhereSourceImageNonZeroImageFilter Self
Definition: itkCropTargetImageWhereSourceImageNonZero.h:70
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::BWhereANonZeroOtherwiseZero< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
Definition: itkCropTargetImageWhereSourceImageNonZero.h:76
float PixelType
Definition: niftkBreastDCEandADC.cxx:88
Function object that given two inputs A and B, will return B if A is not zero, and otherwise return 0...
Definition: itkCropTargetImageWhereSourceImageNonZero.h:32
SmartPointer< Self > Pointer
Definition: itkCropTargetImageWhereSourceImageNonZero.h:77
virtual ~CropTargetImageWhereSourceImageNonZeroImageFilter()
Definition: itkCropTargetImageWhereSourceImageNonZero.h:98
SmartPointer< const Self > ConstPointer
Definition: itkCropTargetImageWhereSourceImageNonZero.h:78