28 #ifndef itkLabelMapFilter_h
29 #define itkLabelMapFilter_h
56 template<
typename TInputImage,
typename TOutputImage >
91 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
92 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
97 void GenerateInputRequestedRegion()
override;
100 void EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output) )
override;
106 void BeforeThreadedGenerateData()
override;
108 void AfterThreadedGenerateData()
override;
115 Self::DynamicThreadedGenerateData(outputRegionForThread);
118 virtual void ThreadedProcessLabelObject(LabelObjectType *labelObject);
133 float m_InverseNumberOfLabelObjects{ 1.0f };
138 #ifndef ITK_MANUAL_INSTANTIATION
139 #include "itkLabelMapFilter.hxx"
typename OutputImageType::Pointer OutputImagePointer
Light weight base class for most itk classes.
unsigned long SizeValueType
typename InputImageType::LabelObjectType LabelObjectType
typename OutputImageType::ConstPointer OutputImageConstPointer
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
virtual InputImageType * GetLabelMap()
typename InputImageType::Pointer InputImagePointer
std::mutex m_LabelObjectContainerLock
typename OutputImageType::RegionType OutputImageRegionType
Base class for filters that take an image as input and overwrite that image as the output...
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType) override
unsigned int ThreadIdType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
InputImageType::Iterator m_LabelObjectIterator
typename InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and produce an image as output.
ImageBaseType::RegionType RegionType
typename InputImageType::ConstPointer InputImageConstPointer
Base class for all data objects in ITK.