18#ifndef itkLabelImageToStatisticsLabelMapFilter_h
19#define itkLabelImageToStatisticsLabelMapFilter_h
40template <
typename TInputImage,
41 typename TFeatureImage,
42 typename TOutputImage =
43 LabelMap<StatisticsLabelObject<typename TInputImage::PixelType, TInputImage::ImageDimension>>>
75 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
76 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
77 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
88#ifdef ITK_USE_CONCEPT_CHECKING
108 itkSetMacro(ComputeFeretDiameter,
bool);
109 itkGetConstReferenceMacro(ComputeFeretDiameter,
bool);
110 itkBooleanMacro(ComputeFeretDiameter);
117 itkSetMacro(ComputePerimeter,
bool);
118 itkGetConstReferenceMacro(ComputePerimeter,
bool);
119 itkBooleanMacro(ComputePerimeter);
127 this->SetNthInput(1,
const_cast<TFeatureImage *
>(input));
131 const FeatureImageType *
141 this->SetInput(input);
148 this->SetFeatureImage(input);
157 itkSetMacro(ComputeHistogram,
bool);
158 itkGetConstReferenceMacro(ComputeHistogram,
bool);
159 itkBooleanMacro(ComputeHistogram);
167 itkSetMacro(NumberOfBins,
unsigned int);
168 itkGetConstReferenceMacro(NumberOfBins,
unsigned int);
194 bool m_ComputeFeretDiameter{};
195 bool m_ComputePerimeter{};
196 unsigned int m_NumberOfBins{};
197 bool m_ComputeHistogram{};
201#ifndef ITK_MANUAL_INSTANTIATION
202# include "itkLabelImageToStatisticsLabelMapFilter.hxx"
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.
convert a labeled image to a label collection image
a convenient class to convert a label image to a label map and valuate the statistics attributes at o...
TFeatureImage FeatureImageType
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::ConstPointer InputImageConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
TInputImage InputImageType
typename InputImageType::Pointer InputImagePointer
LabelImageToStatisticsLabelMapFilter()
void SetFeatureImage(const TFeatureImage *input)
typename FeatureImageType::ConstPointer FeatureImageConstPointer
const FeatureImageType * GetFeatureImage()
void SetInput2(const FeatureImageType *input)
void GenerateInputRequestedRegion() override
typename OutputImageType::RegionType OutputImageRegionType
typename InputImageType::PixelType InputImagePixelType
TOutputImage OutputImageType
typename OutputImageType::ConstPointer OutputImageConstPointer
~LabelImageToStatisticsLabelMapFilter() override=default
void EnlargeOutputRequestedRegion(DataObject *) override
typename OutputImageType::LabelObjectType LabelObjectType
void SetInput1(const InputImageType *input)
void GenerateData() override
typename FeatureImageType::PixelType FeatureImagePixelType
typename FeatureImageType::Pointer FeatureImagePointer
typename InputImageType::RegionType InputImageRegionType
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....