18#ifndef itkBinaryImageToStatisticsLabelMapFilter_h
19#define itkBinaryImageToStatisticsLabelMapFilter_h
40template <
typename TInputImage,
41 typename TFeatureImage,
42 typename TOutputImage = LabelMap<StatisticsLabelObject<SizeValueType, TInputImage::ImageDimension>>>
74 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
75 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
76 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
93 itkSetMacro(FullyConnected,
bool);
94 itkGetConstReferenceMacro(FullyConnected,
bool);
95 itkBooleanMacro(FullyConnected);
98#ifdef ITK_USE_CONCEPT_CHECKING
126 itkSetMacro(ComputeFeretDiameter,
bool);
127 itkGetConstReferenceMacro(ComputeFeretDiameter,
bool);
128 itkBooleanMacro(ComputeFeretDiameter);
135 itkSetMacro(ComputePerimeter,
bool);
136 itkGetConstReferenceMacro(ComputePerimeter,
bool);
137 itkBooleanMacro(ComputePerimeter);
145 this->SetNthInput(1,
const_cast<TFeatureImage *
>(input));
149 const FeatureImageType *
159 this->SetInput(input);
166 this->SetFeatureImage(input);
175 itkSetMacro(ComputeHistogram,
bool);
176 itkGetConstReferenceMacro(ComputeHistogram,
bool);
177 itkBooleanMacro(ComputeHistogram);
185 itkSetMacro(NumberOfBins,
unsigned int);
186 itkGetConstReferenceMacro(NumberOfBins,
unsigned int);
211 bool m_FullyConnected{};
214 bool m_ComputeFeretDiameter{};
215 bool m_ComputePerimeter{};
216 unsigned int m_NumberOfBins{};
217 bool m_ComputeHistogram{};
221#ifndef ITK_MANUAL_INSTANTIATION
222# include "itkBinaryImageToStatisticsLabelMapFilter.hxx"
Label the connected components in a binary image and produce a collection of label objects.
a convenient class to convert a binary image to a label map and valuate the statistics attributes at ...
void SetInput2(const FeatureImageType *input)
typename OutputImageType::LabelObjectType LabelObjectType
void SetFeatureImage(const TFeatureImage *input)
~BinaryImageToStatisticsLabelMapFilter() override=default
void SetInput1(const InputImageType *input)
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::Pointer InputImagePointer
void GenerateData() override
TInputImage InputImageType
void EnlargeOutputRequestedRegion(DataObject *) override
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::RegionType InputImageRegionType
TOutputImage OutputImageType
typename FeatureImageType::ConstPointer FeatureImageConstPointer
typename FeatureImageType::PixelType FeatureImagePixelType
typename OutputImageType::ConstPointer OutputImageConstPointer
typename FeatureImageType::Pointer FeatureImagePointer
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::ConstPointer InputImageConstPointer
const FeatureImageType * GetFeatureImage()
BinaryImageToStatisticsLabelMapFilter()
TFeatureImage FeatureImageType
typename OutputImageType::Pointer OutputImagePointer
void GenerateInputRequestedRegion() override
typename OutputImageType::RegionType OutputImageRegionType
Base class for all data objects in ITK.
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
The valuator class for the StatisticsLabelObject.
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....