18 #ifndef itkBinaryGeneratorImageFilter_h
19 #define itkBinaryGeneratorImageFilter_h
55 template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
98 SetInput1(
const TInputImage1 * image1);
112 GetConstant1()
const;
116 SetInput2(
const TInputImage2 * image2);
130 this->SetConstant2(ct);
132 const Input2ImagePixelType &
135 return this->GetConstant2();
141 virtual const Input2ImagePixelType &
142 GetConstant2()
const;
144 #if !defined(ITK_WRAPPING_PARSER)
153 m_DynamicThreadedGenerateDataFunction = [
this, f](
const OutputImageRegionType & outputRegionForThread) {
154 return this->DynamicThreadedGenerateDataWithFunctor(f, outputRegionForThread);
164 m_DynamicThreadedGenerateDataFunction = [
this, f](
const OutputImageRegionType & outputRegionForThread) {
165 return this->DynamicThreadedGenerateDataWithFunctor(f, outputRegionForThread);
178 m_DynamicThreadedGenerateDataFunction = [
this, funcPointer](
const OutputImageRegionType & outputRegionForThread) {
179 return this->DynamicThreadedGenerateDataWithFunctor(funcPointer, outputRegionForThread);
188 m_DynamicThreadedGenerateDataFunction = [
this, funcPointer](
const OutputImageRegionType & outputRegionForThread) {
189 return this->DynamicThreadedGenerateDataWithFunctor(funcPointer, outputRegionForThread);
204 template <
typename TFunctor>
209 m_DynamicThreadedGenerateDataFunction = [
this, functor](
const OutputImageRegionType & outputRegionForThread) {
210 return this->DynamicThreadedGenerateDataWithFunctor(functor, outputRegionForThread);
216 #endif // !defined( ITK_WRAPPING_PARSER )
220 static constexpr
unsigned int InputImage1Dimension = TInputImage1::ImageDimension;
221 static constexpr
unsigned int InputImage2Dimension = TInputImage2::ImageDimension;
222 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
224 #ifdef ITK_USE_CONCEPT_CHECKING
246 template <
typename TFunctor>
248 DynamicThreadedGenerateDataWithFunctor(
const TFunctor &,
const OutputImageRegionType & outputRegionForThread);
254 this->UpdateProgress(1.0);
261 GenerateOutputInformation()
override;
268 #ifndef ITK_MANUAL_INSTANTIATION
269 # include "itkBinaryGeneratorImageFilter.hxx"