18 #ifndef itkLabelMapToBinaryImageFilter_h
19 #define itkLabelMapToBinaryImageFilter_h
44 template<
typename TInputImage,
typename TOutputImage >
73 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
74 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
103 this->SetNthInput( 1, const_cast< OutputImageType * >( input ) );
114 this->SetInput(input);
120 this->SetBackgroundImage(input);
130 void GenerateInputRequestedRegion()
override;
133 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) )
override;
135 void GenerateData()
override;
137 void DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
142 Superclass::DynamicThreadedGenerateData(outputRegion);
145 void ThreadedProcessLabelObject(LabelObjectType *labelObject)
override;
147 void PrintSelf(std::ostream & os,
Indent indent)
const override;
155 #ifndef ITK_MANUAL_INSTANTIATION
156 #include "itkLabelMapToBinaryImageFilter.hxx"
typename OutputImageType::Pointer OutputImagePointer
OutputImagePixelType m_ForegroundValue
OutputImageType * GetBackgroundImage()
typename InputImageType::LabelObjectType LabelObjectType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
TInputImage InputImageType
typename OutputImageType::ConstPointer OutputImageConstPointer
void SetInput1(const InputImageType *input)
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
OutputImagePixelType m_BackgroundValue
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
TOutputImage OutputImageType
void SetInput2(const OutputImageType *input)
Base class for filters that take an image as input and overwrite that image as the output...
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
typename OutputImageType::IndexType IndexType
typename InputImageType::RegionType InputImageRegionType
void SuperclassDynamicTGD(const OutputImageRegionType &outputRegion)
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
void SetBackgroundImage(const OutputImageType *input)
ImageBaseType::RegionType RegionType
typename InputImageType::ConstPointer InputImageConstPointer
Base class for all data objects in ITK.
Convert a LabelMap to a binary image.