18 #ifndef itkBinaryFunctorImageFilter_h
19 #define itkBinaryFunctorImageFilter_h
49 template<
typename TInputImage1,
typename TInputImage2,
50 typename TOutputImage,
typename TFunction >
89 virtual void SetInput1(
const TInputImage1 *image1);
102 virtual void SetInput2(
const TInputImage2 *image2);
111 this->SetConstant2(ct);
115 return this->GetConstant2();
121 virtual const Input2ImagePixelType & GetConstant2()
const;
146 if ( m_Functor != functor )
156 InputImage1Dimension,
unsigned int, TInputImage1::ImageDimension);
158 InputImage2Dimension,
unsigned int, TInputImage2::ImageDimension);
160 OutputImageDimension,
unsigned int, TOutputImage::ImageDimension);
163 #ifdef ITK_USE_CONCEPT_CHECKING
167 itkGetStaticConstMacro(InputImage2Dimension) > ) );
170 itkGetStaticConstMacro(OutputImageDimension) > ) );
188 void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
193 virtual void GenerateOutputInformation() ITK_OVERRIDE;
202 #ifndef ITK_MANUAL_INSTANTIATION
203 #include "itkBinaryFunctorImageFilter.hxx"
Input2ImageType::RegionType Input2ImageRegionType
OutputImageType::RegionType OutputImageRegionType
void SetFunctor(const FunctorType &functor)
InPlaceImageFilter< TInputImage1, TOutputImage > Superclass
TInputImage1 Input1ImageType
SimpleDataObjectDecorator< Input1ImagePixelType > DecoratedInput1ImagePixelType
const FunctorType & GetFunctor() const
Base class for all process objects that output image data.
Input1ImageType::ConstPointer Input1ImagePointer
OutputImageType::PixelType OutputImagePixelType
void SetConstant(Input2ImagePixelType ct)
Input1ImageType::RegionType Input1ImageRegionType
Decorates any "simple" data type (data types without smart pointers) with a DataObject API...
SmartPointer< Self > Pointer
OutputImageType::Pointer OutputImagePointer
BinaryFunctorImageFilter Self
FunctorType & GetFunctor()
Input2ImageType::PixelType Input2ImagePixelType
Input1ImageType::PixelType Input1ImagePixelType
SimpleDataObjectDecorator< Input2ImagePixelType > DecoratedInput2ImagePixelType
SmartPointer< const Self > ConstPointer
unsigned int ThreadIdType
TInputImage2 Input2ImageType
virtual ~BinaryFunctorImageFilter() override
TOutputImage OutputImageType
const Input2ImagePixelType & GetConstant() const
Base class for filters that take an image as input and overwrite that image as the output...
#define itkConceptMacro(name, concept)
Input2ImageType::ConstPointer Input2ImagePointer
Implements pixel-wise generic operation of two images, or of an image and a constant.