18 #ifndef itkLabelImageToStatisticsLabelMapFilter_h
19 #define itkLabelImageToStatisticsLabelMapFilter_h
40 template<
typename TInputImage,
typename TFeatureImage,
typename TOutputImage =
41 LabelMap< StatisticsLabelObject<
typename TInputImage::PixelType,
42 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;
89 #ifdef ITK_USE_CONCEPT_CHECKING
112 itkSetMacro(ComputeFeretDiameter,
bool);
113 itkGetConstReferenceMacro(ComputeFeretDiameter,
bool);
114 itkBooleanMacro(ComputeFeretDiameter);
121 itkSetMacro(ComputePerimeter,
bool);
122 itkGetConstReferenceMacro(ComputePerimeter,
bool);
123 itkBooleanMacro(ComputePerimeter);
130 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
142 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);
174 void PrintSelf(std::ostream & os,
Indent indent)
const override;
179 void GenerateInputRequestedRegion()
override;
182 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) )
override;
186 void GenerateData()
override;
197 #ifndef ITK_MANUAL_INSTANTIATION
198 #include "itkLabelImageToStatisticsLabelMapFilter.hxx"
typename FeatureImageType::ConstPointer FeatureImageConstPointer
convert a labeled image to a label collection image
typename OutputImageType::Pointer OutputImagePointer
unsigned int m_NumberOfBins
OutputImagePixelType m_BackgroundValue
typename FeatureImageType::PixelType FeatureImagePixelType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename OutputImageType::LabelObjectType LabelObjectType
a convenient class to convert a label image to a label map and valuate the statistics attributes at o...
Base class for all process objects that output image data.
TInputImage InputImageType
bool m_ComputeFeretDiameter
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
void SetFeatureImage(const TFeatureImage *input)
typename InputImageType::Pointer InputImagePointer
void SetInput1(const InputImageType *input)
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
const FeatureImageType * GetFeatureImage()
void SetInput2(const FeatureImageType *input)
typename InputImageType::RegionType InputImageRegionType
typename OutputImageType::ConstPointer OutputImageConstPointer
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
typename FeatureImageType::Pointer FeatureImagePointer
The valuator class for the StatisticsLabelObject.
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
typename InputImageType::ConstPointer InputImageConstPointer
TFeatureImage FeatureImageType
Base class for all data objects in ITK.