18#ifndef itkBinaryFunctorImageFilter_h
19#define itkBinaryFunctorImageFilter_h
52template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage,
typename TFunction>
53class ITK_TEMPLATE_EXPORT BinaryFunctorImageFilter :
public InPlaceImageFilter<TInputImage1, TOutputImage>
56 ITK_DISALLOW_COPY_AND_MOVE(BinaryFunctorImageFilter);
105 GetConstant1()
const;
122 this->SetConstant2(ct);
124 const Input2ImagePixelType &
127 return this->GetConstant2();
133 virtual const Input2ImagePixelType &
134 GetConstant2()
const;
165 if (m_Functor != functor)
174 static constexpr unsigned int InputImage1Dimension = TInputImage1::ImageDimension;
175 static constexpr unsigned int InputImage2Dimension = TInputImage2::ImageDimension;
176 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
178#ifdef ITK_USE_CONCEPT_CHECKING
208 GenerateOutputInformation()
override;
215#ifndef ITK_MANUAL_INSTANTIATION
216# include "itkBinaryFunctorImageFilter.hxx"
Implements pixel-wise generic operation of two images, or of an image and a constant.
virtual void SetInput1(const Input1ImagePixelType &input1)
TInputImage1 Input1ImageType
typename Input1ImageType::RegionType Input1ImageRegionType
virtual void SetInput1(const DecoratedInput1ImagePixelType *input1)
typename Input1ImageType::ConstPointer Input1ImagePointer
TInputImage2 Input2ImageType
typename Input1ImageType::PixelType Input1ImagePixelType
typename Input2ImageType::ConstPointer Input2ImagePointer
virtual void SetInput2(const DecoratedInput2ImagePixelType *input2)
typename Input2ImageType::RegionType Input2ImageRegionType
virtual void SetInput2(const Input2ImagePixelType &input2)
typename Input2ImageType::PixelType Input2ImagePixelType
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Decorates any "simple" data type (data types without smart pointers) with a DataObject API.
Functor::Add2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
ImageBaseType::RegionType RegionType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....