18 #ifndef itkBinaryGeneratorImageFilter_h
19 #define itkBinaryGeneratorImageFilter_h
55 template<
typename TInputImage1,
typename TInputImage2,
56 typename TOutputImage >
102 virtual void SetInput1(
const TInputImage1 *image1);
115 virtual void SetInput2(
const TInputImage2 *image2);
125 this->SetConstant2(ct);
129 return this->GetConstant2();
135 virtual const Input2ImagePixelType & GetConstant2()
const;
137 #if !defined( ITK_WRAPPING_PARSER )
142 void SetFunctor(
const std::function<ConstRefFunctionType> &f)
145 m_DynamicThreadedGenerateDataFunction = [
this, f](
const OutputImageRegionType & outputRegionForThread)
146 {
return this->DynamicThreadedGenerateDataWithFunctor(f, outputRegionForThread); };
153 m_DynamicThreadedGenerateDataFunction = [
this, f](
const OutputImageRegionType & outputRegionForThread)
154 {
return this->DynamicThreadedGenerateDataWithFunctor(f, outputRegionForThread); };
165 m_DynamicThreadedGenerateDataFunction = [
this, funcPointer](
const OutputImageRegionType & outputRegionForThread)
166 {
return this->DynamicThreadedGenerateDataWithFunctor(funcPointer, outputRegionForThread); };
174 m_DynamicThreadedGenerateDataFunction = [
this, funcPointer](
const OutputImageRegionType & outputRegionForThread)
175 {
return this->DynamicThreadedGenerateDataWithFunctor(funcPointer, outputRegionForThread); };
189 template <
typename TFunctor>
193 m_DynamicThreadedGenerateDataFunction = [
this, functor](
const OutputImageRegionType & outputRegionForThread)
194 {
return this->DynamicThreadedGenerateDataWithFunctor(functor, outputRegionForThread); };
198 #endif // !defined( ITK_WRAPPING_PARSER )
203 InputImage1Dimension,
unsigned int, TInputImage1::ImageDimension);
205 InputImage2Dimension,
unsigned int, TInputImage2::ImageDimension);
207 OutputImageDimension,
unsigned int, TOutputImage::ImageDimension);
210 #ifdef ITK_USE_CONCEPT_CHECKING
214 itkGetStaticConstMacro(InputImage2Dimension) > ) );
217 itkGetStaticConstMacro(OutputImageDimension) > ) );
234 template <
typename TFunctor>
235 void DynamicThreadedGenerateDataWithFunctor(
const TFunctor &,
const OutputImageRegionType & outputRegionForThread);
241 void GenerateOutputInformation()
override;
248 #ifndef ITK_MANUAL_INSTANTIATION
249 #include "itkBinaryGeneratorImageFilter.hxx"
typename OutputImageType::Pointer OutputImagePointer
OutputImagePixelType(const Input1ImagePixelType &, const Input2ImagePixelType &) ConstRefFunctionType
typename Input2ImageType::PixelType Input2ImagePixelType
typename Input1ImageType::PixelType Input1ImagePixelType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
void SetFunctor(ValueFunctionType *funcPointer)
void SetFunctor(ConstRefFunctionType *funcPointer)
typename Input2ImageType::ConstPointer Input2ImagePointer
std::function< void(const OutputImageRegionType &)> m_DynamicThreadedGenerateDataFunction
typename Input1ImageType::RegionType Input1ImageRegionType
Base class for all process objects that output image data.
OutputImagePixelType(Input1ImagePixelType, Input2ImagePixelType) ValueFunctionType
typename OutputImageType::PixelType OutputImagePixelType
TLabelImage Input2ImageType
Decorates any "simple" data type (data types without smart pointers) with a DataObject API...
typename OutputImageType::RegionType OutputImageRegionType
Implements pixel-wise generic operation of two images, or of an image and a constant.
TOutputImage OutputImageType
void SetConstant(Input2ImagePixelType ct)
typename Input2ImageType::RegionType Input2ImageRegionType
void SetFunctor(const std::function< ConstRefFunctionType > &f)
const Input2ImagePixelType & GetConstant() const
void SetFunctor(const TFunctor &functor)
typename Input1ImageType::ConstPointer Input1ImagePointer
OutputImagePixelType(*)(const Input1ImagePixelType &, const Input2ImagePixelType &) FunctionType
Base class for filters that take an image as input and overwrite that image as the output...
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
TInputImage Input1ImageType
void SetFunctor(const std::function< ValueFunctionType > &f)