18 #ifndef itkLabelImageToStatisticsLabelMapFilter_h
19 #define itkLabelImageToStatisticsLabelMapFilter_h
40 template <
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);
175 PrintSelf(std::ostream & os,
Indent indent)
const override;
181 GenerateInputRequestedRegion()
override;
185 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
190 GenerateData()
override;
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"