18 #ifndef __itkSubtractImageFilter_h
19 #define __itkSubtractImageFilter_h
32 template<
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1 >
46 return !( *
this != other );
49 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
50 {
return (TOutput)( A - B ); }
93 template<
typename TInputImage1,
typename TInputImage2 = TInputImage1,
typename TOutputImage = TInputImage1 >
98 typename TInputImage1::PixelType,
99 typename TInputImage2::PixelType,
100 typename TOutputImage::PixelType > >
106 TInputImage1, TInputImage2, TOutputImage,
108 typename TInputImage2::PixelType,
121 #ifdef ITK_USE_CONCEPT_CHECKING
125 typename TInputImage2::PixelType,
126 typename TOutputImage::PixelType > ) );
SmartPointer< const Self > ConstPointer
Pixel-wise subtraction of two images.
virtual ~SubtractImageFilter()
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::Sub2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
Base class for all process objects that output image data.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator!=(const Sub2 &) const
bool operator==(const Sub2 &other) const
void operator=(const Self &)
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
Implements pixel-wise generic operation of two images, or of an image and a constant.