18 #ifndef itkLabelImageToStatisticsLabelMapFilter_h
19 #define itkLabelImageToStatisticsLabelMapFilter_h
41 template <
typename TInputImage,
42 typename TFeatureImage,
43 typename TOutputImage =
44 LabelMap<StatisticsLabelObject<typename TInputImage::PixelType, TInputImage::ImageDimension>>>
76 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
77 static constexpr
unsigned int OutputImageDimension = TInputImage::ImageDimension;
78 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
89 #ifdef ITK_USE_CONCEPT_CHECKING
109 itkSetMacro(ComputeFeretDiameter,
bool);
110 itkGetConstReferenceMacro(ComputeFeretDiameter,
bool);
111 itkBooleanMacro(ComputeFeretDiameter);
118 itkSetMacro(ComputePerimeter,
bool);
119 itkGetConstReferenceMacro(ComputePerimeter,
bool);
120 itkBooleanMacro(ComputePerimeter);
128 this->SetNthInput(1, const_cast<TFeatureImage *>(input));
132 const FeatureImageType *
142 this->SetInput(input);
149 this->SetFeatureImage(input);
158 itkSetMacro(ComputeHistogram,
bool);
159 itkGetConstReferenceMacro(ComputeHistogram,
bool);
160 itkBooleanMacro(ComputeHistogram);
168 itkSetMacro(NumberOfBins,
unsigned int);
169 itkGetConstReferenceMacro(NumberOfBins,
unsigned int);
176 PrintSelf(std::ostream & os,
Indent indent)
const override;
182 GenerateInputRequestedRegion()
override;
186 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
191 GenerateData()
override;
202 #ifndef ITK_MANUAL_INSTANTIATION
203 # include "itkLabelImageToStatisticsLabelMapFilter.hxx"