18 #ifndef itkObjectByObjectLabelMapFilter_h
19 #define itkObjectByObjectLabelMapFilter_h
80 template <
typename TInputImage,
81 typename TOutputImage = TInputImage,
82 typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>,
83 Image<unsigned char, TOutputImage::ImageDimension>>,
84 class TOutputFilter =
typename TInputFilter::Superclass,
85 class TInternalInputImage =
typename TInputFilter::InputImageType,
86 class TInternalOutputImage =
typename TOutputFilter::OutputImageType>
127 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
128 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
129 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
142 return this->m_InputFilter;
145 const InputFilterType *
148 return this->m_InputFilter;
152 SetInputFilter(InputFilterType * filter);
153 itkGetModifiableObjectMacro(InputFilter, InputFilterType);
156 SetOutputFilter(OutputFilterType * filter);
157 itkGetModifiableObjectMacro(OutputFilter, OutputFilterType);
166 itkSetMacro(KeepLabels,
bool);
167 itkGetMacro(KeepLabels,
bool);
168 itkBooleanMacro(KeepLabels);
182 itkSetMacro(ConstrainPaddingToImage,
bool);
183 itkGetMacro(ConstrainPaddingToImage,
bool);
184 itkBooleanMacro(ConstrainPaddingToImage);
192 itkSetMacro(BinaryInternalOutput,
bool);
193 itkGetMacro(BinaryInternalOutput,
bool);
194 itkBooleanMacro(BinaryInternalOutput);
201 itkSetMacro(InternalForegroundValue, InternalOutputPixelType);
202 itkGetMacro(InternalForegroundValue, InternalOutputPixelType);
209 itkGetMacro(
Label, InputImagePixelType);
215 PrintSelf(std::ostream & os,
Indent indent)
const override;
218 GenerateData()
override;
257 #ifndef ITK_MANUAL_INSTANTIATION
258 # include "itkObjectByObjectLabelMapFilter.hxx"