18 #ifndef itkBinaryFunctorImageFilter_h
19 #define itkBinaryFunctorImageFilter_h
50 template<
typename TInputImage1,
typename TInputImage2,
51 typename TOutputImage,
typename TFunction >
90 virtual void SetInput1(
const TInputImage1 *image1);
103 virtual void SetInput2(
const TInputImage2 *image2);
112 this->SetConstant2(ct);
116 return this->GetConstant2();
122 virtual const Input2ImagePixelType & GetConstant2()
const;
147 if ( m_Functor != functor )
156 static constexpr
unsigned int InputImage1Dimension = TInputImage1::ImageDimension;
157 static constexpr
unsigned int InputImage2Dimension = TInputImage2::ImageDimension;
158 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
160 #ifdef ITK_USE_CONCEPT_CHECKING
164 Self::InputImage2Dimension > ) );
167 Self::OutputImageDimension > ) );
190 void GenerateOutputInformation()
override;
197 #ifndef ITK_MANUAL_INSTANTIATION
198 #include "itkBinaryFunctorImageFilter.hxx"
void SetFunctor(const FunctorType &functor)
typename OutputImageType::Pointer OutputImagePointer
TInputImage1 Input1ImageType
typename Input1ImageType::RegionType Input1ImageRegionType
const FunctorType & GetFunctor() const
typename Input2ImageType::ConstPointer Input2ImagePointer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
TInputImage2 Input2ImageType
Base class for all process objects that output image data.
typename Input2ImageType::PixelType Input2ImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
void SetConstant(Input2ImagePixelType ct)
typename Input1ImageType::ConstPointer Input1ImagePointer
Decorates any "simple" data type (data types without smart pointers) with a DataObject API...
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
FunctorType & GetFunctor()
typename Input1ImageType::PixelType Input1ImagePixelType
const Input2ImagePixelType & GetConstant() const
Base class for filters that take an image as input and overwrite that image as the output...
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
typename Input2ImageType::RegionType Input2ImageRegionType
Implements pixel-wise generic operation of two images, or of an image and a constant.