18 #ifndef itkTernaryFunctorImageFilter_h
19 #define itkTernaryFunctorImageFilter_h
38 template<
typename TInputImage1,
typename TInputImage2,
39 typename TInputImage3,
typename TOutputImage,
typename TFunction >
76 void SetInput1(
const TInputImage1 *image1);
79 void SetInput2(
const TInputImage2 *image2);
82 void SetInput3(
const TInputImage3 *image3);
107 if ( !( functor == m_Functor ) )
116 itkStaticConstMacro(Input1ImageDimension,
unsigned int,
117 TInputImage1::ImageDimension);
118 itkStaticConstMacro(Input2ImageDimension,
unsigned int,
119 TInputImage2::ImageDimension);
120 itkStaticConstMacro(Input3ImageDimension,
unsigned int,
121 TInputImage3::ImageDimension);
122 itkStaticConstMacro(OutputImageDimension,
unsigned int,
123 TOutputImage::ImageDimension);
126 #ifdef ITK_USE_CONCEPT_CHECKING
143 void BeforeThreadedGenerateData() ITK_OVERRIDE;
155 void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
165 #ifndef ITK_MANUAL_INSTANTIATION
166 #include "itkTernaryFunctorImageFilter.hxx"
virtual ~TernaryFunctorImageFilter() override
SmartPointer< Self > Pointer
Light weight base class for most itk classes.
Input2ImageType::RegionType Input2ImageRegionType
TOutputImage OutputImageType
Input2ImageType::PixelType Input2ImagePixelType
Input3ImageType::RegionType Input3ImageRegionType
Input3ImageType::ConstPointer Input3ImagePointer
Implements pixel-wise generic operation of three images.
OutputImageType::Pointer OutputImagePointer
const FunctorType & GetFunctor() const
InPlaceImageFilter< TInputImage1, TOutputImage > Superclass
Input1ImageType::ConstPointer Input1ImagePointer
TInputImage1 Input1ImageType
Input1ImageType::PixelType Input1ImagePixelType
void SetFunctor(const FunctorType &functor)
TInputImage3 Input3ImageType
unsigned int ThreadIdType
Input1ImageType::RegionType Input1ImageRegionType
SmartPointer< const Self > ConstPointer
OutputImageType::RegionType OutputImageRegionType
OutputImageType::PixelType OutputImagePixelType
TernaryFunctorImageFilter Self
FunctorType & GetFunctor(void)
Base class for filters that take an image as input and overwrite that image as the output...
#define itkConceptMacro(name, concept)
Input2ImageType::ConstPointer Input2ImagePointer
TInputImage2 Input2ImageType
Input3ImageType::PixelType Input3ImagePixelType