18#ifndef itkBinaryImageToShapeLabelMapFilter_h
19#define itkBinaryImageToShapeLabelMapFilter_h
60template <
typename TInputImage,
61 typename TOutputImage = LabelMap<ShapeLabelObject<SizeValueType, TInputImage::ImageDimension>>>
89 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
90 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
91 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
108 itkSetMacro(FullyConnected,
bool);
109 itkGetConstReferenceMacro(FullyConnected,
bool);
110 itkBooleanMacro(FullyConnected);
113#ifdef ITK_USE_CONCEPT_CHECKING
141 itkSetMacro(ComputeFeretDiameter,
bool);
142 itkGetConstReferenceMacro(ComputeFeretDiameter,
bool);
143 itkBooleanMacro(ComputeFeretDiameter);
150 itkSetMacro(ComputePerimeter,
bool);
151 itkGetConstReferenceMacro(ComputePerimeter,
bool);
152 itkBooleanMacro(ComputePerimeter);
160 itkSetMacro(ComputeOrientedBoundingBox,
bool);
161 itkGetConstReferenceMacro(ComputeOrientedBoundingBox,
bool);
162 itkBooleanMacro(ComputeOrientedBoundingBox);
186 bool m_FullyConnected{};
189 bool m_ComputeFeretDiameter{};
190 bool m_ComputePerimeter{};
191 bool m_ComputeOrientedBoundingBox{};
195#ifndef ITK_MANUAL_INSTANTIATION
196# include "itkBinaryImageToShapeLabelMapFilter.hxx"
Label the connected components in a binary image and produce a collection of label objects.
Converts a binary image to a label map and valuate the shape attributes.
typename InputImageType::RegionType InputImageRegionType
TInputImage InputImageType
void GenerateData() override
TOutputImage OutputImageType
void GenerateInputRequestedRegion() override
void PrintSelf(std::ostream &os, Indent indent) const override
BinaryImageToShapeLabelMapFilter()
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::LabelObjectType LabelObjectType
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
typename OutputImageType::ConstPointer OutputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
~BinaryImageToShapeLabelMapFilter() override=default
void EnlargeOutputRequestedRegion(DataObject *) override
Base class for all data objects in ITK.
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Control indentation during Print() invocation.
The valuator class for the ShapeLabelObject.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
ImageBaseType::RegionType RegionType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....