18#ifndef itkStatisticsLabelMapFilter_h
19#define itkStatisticsLabelMapFilter_h
40template <
typename TImage,
typename TFeatureImage>
42 :
public ShapeLabelMapFilter<TImage, Image<typename TImage::PixelType, TImage::ImageDimension>>
90 this->
SetNthInput(1,
const_cast<TFeatureImage *
>(input));
120 itkSetMacro(ComputeHistogram,
bool);
121 itkGetConstReferenceMacro(ComputeHistogram,
bool);
122 itkBooleanMacro(ComputeHistogram);
130 itkSetMacro(NumberOfBins,
unsigned int);
131 itkGetConstReferenceMacro(NumberOfBins,
unsigned int);
135 static constexpr unsigned int
140 return std::is_integral_v<FeatureImagePixelType> &&
sizeof(
FeatureImagePixelType) <= 2 ? 1u << bitsShift : 128u;
164#ifndef ITK_MANUAL_INSTANTIATION
165# include "itkStatisticsLabelMapFilter.hxx"
Base class for all data objects in ITK.
virtual void SetInput(const InputImageType *input)
Control indentation during Print() invocation.
virtual void SetNthInput(DataObjectPointerArraySizeType idx, DataObject *input)
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Implements transparent reference counting.
FeatureImageType * GetFeatureImage()
typename ImageType::LabelObjectType LabelObjectType
void BeforeThreadedGenerateData() override
static constexpr unsigned int GetDefaultNumberOfBins()
ShapeLabelMapFilter< OutputImageType > Superclass
FeatureImagePixelType m_Minimum
typename FeatureImageType::PixelType FeatureImagePixelType
void SetFeatureImage(const TFeatureImage *input)
typename LabelObjectType::MatrixType MatrixType
~StatisticsLabelMapFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
unsigned int m_NumberOfBins
typename FeatureImageType::Pointer FeatureImagePointer
FeatureImagePixelType m_Maximum
typename ImageType::ConstPointer ImageConstPointer
SmartPointer< const Self > ConstPointer
void ThreadedProcessLabelObject(LabelObjectType *labelObject) override
SmartPointer< Self > Pointer
StatisticsLabelMapFilter Self
typename ImageType::IndexType IndexType
typename ImageType::PixelType PixelType
typename FeatureImageType::ConstPointer FeatureImageConstPointer
StatisticsLabelMapFilter()
static constexpr unsigned int ImageDimension
void SetInput2(const TFeatureImage *input)
typename ImageType::PointType PointType
void SetInput1(TImage *input)
FeatureImageType FeatureImageType
typename ImageType::Pointer ImagePointer
OutputImageType ImageType
typename LabelObjectType::VectorType VectorType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....