18#ifndef itkRelabelComponentImageFilter_h
19#define itkRelabelComponentImageFilter_h
81template <
typename TInputImage,
typename TOutputImage>
177 itkSetMacro(SortByObjectSize,
bool);
178 itkGetConstMacro(SortByObjectSize,
bool);
179 itkBooleanMacro(SortByObjectSize);
200 const ObjectSizeInPhysicalUnitsContainerType &
286 using MapType = std::map<LabelType, RelabelComponentObjectType>;
294#ifndef ITK_MANUAL_INSTANTIATION
295# include "itkRelabelComponentImageFilter.hxx"
typename InputImageType::Pointer InputImagePointer
InPlaceImageFilter()=default
Control indentation during Print() invocation.
ObjectSizeType GetSizeOfObjectInPixels(LabelType obj) const
SmartPointer< const Self > ConstPointer
static constexpr unsigned int InputImageDimension
std::vector< float > ObjectSizeInPhysicalUnitsContainerType
ObjectSizeInPixelsContainerType m_SizeOfObjectsInPixels
void PrintSelf(std::ostream &os, Indent indent) const override
RelabelComponentImageFilter Self
~RelabelComponentImageFilter() override=default
std::map< LabelType, RelabelComponentObjectType > MapType
RelabelComponentImageFilter()
void GenerateInputRequestedRegion() override
TInputImage InputImageType
typename TInputImage::SizeType SizeType
typename TOutputImage::RegionType RegionType
SizeValueType m_NumberOfObjects
typename TOutputImage::InternalPixelType OutputInternalPixelType
typename TOutputImage::PixelType OutputPixelType
std::vector< ObjectSizeType > ObjectSizeInPixelsContainerType
InPlaceImageFilter< TInputImage, TOutputImage > Superclass
typename TInputImage::IndexType IndexType
SizeValueType m_NumberOfObjectsToPrint
float GetSizeOfObjectInPhysicalUnits(LabelType obj) const
typename TInputImage::InternalPixelType InputInternalPixelType
typename TInputImage::PixelType InputPixelType
static constexpr unsigned int ImageDimension
TOutputImage OutputImageType
void GenerateData() override
const ObjectSizeInPixelsContainerType & GetSizeOfObjectsInPixels() const
SmartPointer< Self > Pointer
const ObjectSizeInPhysicalUnitsContainerType & GetSizeOfObjectsInPhysicalUnits() const
ObjectSizeInPhysicalUnitsContainerType m_SizeOfObjectsInPhysicalUnits
SizeValueType ObjectSizeType
SizeValueType m_OriginalNumberOfObjects
void ParallelComputeLabels(const RegionType &inputRegionForThread)
ObjectSizeType m_MinimumObjectSize
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
RelabelComponentObjectType & operator+=(const RelabelComponentObjectType &other)
ObjectSizeType m_SizeInPixels