18 #ifndef itkStatisticsLabelMapFilter_h
19 #define itkStatisticsLabelMapFilter_h
40 template<
typename TImage,
typename TFeatureImage >
43 Image< typename TImage::PixelType, TImage ::ImageDimension > >
71 static constexpr
unsigned int ImageDimension = TImage::ImageDimension;
80 #ifdef ITK_USE_CONCEPT_CHECKING
95 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
107 this->SetInput(input);
113 this->SetFeatureImage(input);
122 itkSetMacro(ComputeHistogram,
bool);
123 itkGetConstReferenceMacro(ComputeHistogram,
bool);
124 itkBooleanMacro(ComputeHistogram);
132 itkSetMacro(NumberOfBins,
unsigned int);
133 itkGetConstReferenceMacro(NumberOfBins,
unsigned int);
140 void ThreadedProcessLabelObject(LabelObjectType *labelObject)
override;
142 void BeforeThreadedGenerateData()
override;
144 void PrintSelf(std::ostream & os,
Indent indent)
const override;
154 #ifndef ITK_MANUAL_INSTANTIATION
155 #include "itkStatisticsLabelMapFilter.hxx"
Light weight base class for most itk classes.
unsigned int m_NumberOfBins
FeatureImagePixelType m_Minimum
typename FeatureImageType::Pointer FeatureImagePointer
typename ImageType::IndexType IndexType
typename FeatureImageType::PixelType FeatureImagePixelType
void SetInput1(TImage *input)
typename LabelObjectType::MatrixType MatrixType
typename ImageType::PixelType PixelType
FeatureImageType * GetFeatureImage()
typename LabelObjectType::VectorType VectorType
ImageBaseType::IndexType IndexType
typename ImageType::LabelObjectType LabelObjectType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
TFeatureImage FeatureImageType
void SetInput2(const TFeatureImage *input)
Control indentation during Print() invocation.
typename FeatureImageType::ConstPointer FeatureImageConstPointer
ImageBaseType::PointType PointType
void SetFeatureImage(const TFeatureImage *input)
FeatureImagePixelType m_Maximum
The valuator class for the StatisticsLabelObject.
ImageBaseType::SpacingType VectorType
typename ImageType::Pointer ImagePointer
The valuator class for the ShapeLabelObject.
Base class for all data objects in ITK.
typename ImageType::PointType PointType
typename ImageType::ConstPointer ImageConstPointer