18 #ifndef itkObjectByObjectLabelMapFilter_h
19 #define itkObjectByObjectLabelMapFilter_h
79 template <
typename TInputImage,
80 typename TOutputImage = TInputImage,
81 typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>,
82 Image<unsigned char, TOutputImage::ImageDimension>>,
84 class TInternalInputImage =
typename TInputFilter::InputImageType,
85 class TInternalOutputImage =
typename TOutputFilter::OutputImageType>
126 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
127 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
128 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
141 return this->m_InputFilter;
144 const InputFilterType *
147 return this->m_InputFilter;
151 SetInputFilter(InputFilterType * filter);
152 itkGetModifiableObjectMacro(InputFilter, InputFilterType);
155 SetOutputFilter(OutputFilterType * filter);
156 itkGetModifiableObjectMacro(OutputFilter, OutputFilterType);
165 itkSetMacro(KeepLabels,
bool);
166 itkGetMacro(KeepLabels,
bool);
167 itkBooleanMacro(KeepLabels);
181 itkSetMacro(ConstrainPaddingToImage,
bool);
182 itkGetMacro(ConstrainPaddingToImage,
bool);
183 itkBooleanMacro(ConstrainPaddingToImage);
191 itkSetMacro(BinaryInternalOutput,
bool);
192 itkGetMacro(BinaryInternalOutput,
bool);
193 itkBooleanMacro(BinaryInternalOutput);
200 itkSetMacro(InternalForegroundValue, InternalOutputPixelType);
201 itkGetMacro(InternalForegroundValue, InternalOutputPixelType);
208 itkGetMacro(
Label, InputImagePixelType);
214 PrintSelf(std::ostream & os,
Indent indent)
const override;
217 GenerateData()
override;
220 bool m_ConstrainPaddingToImage{};
222 bool m_BinaryInternalOutput{};
256 #ifndef ITK_MANUAL_INSTANTIATION
257 # include "itkObjectByObjectLabelMapFilter.hxx"