18 #ifndef itkBinaryImageToStatisticsLabelMapFilter_h
19 #define itkBinaryImageToStatisticsLabelMapFilter_h
40 template<
typename TInputImage,
typename TFeatureImage,
typename TOutputImage =
41 LabelMap< StatisticsLabelObject< SizeValueType, TInputImage::ImageDimension > > >
74 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
75 static constexpr
unsigned int OutputImageDimension = TInputImage::ImageDimension;
76 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
94 itkSetMacro(FullyConnected,
bool);
95 itkGetConstReferenceMacro(FullyConnected,
bool);
96 itkBooleanMacro(FullyConnected);
99 #ifdef ITK_USE_CONCEPT_CHECKING
130 itkSetMacro(ComputeFeretDiameter,
bool);
131 itkGetConstReferenceMacro(ComputeFeretDiameter,
bool);
132 itkBooleanMacro(ComputeFeretDiameter);
139 itkSetMacro(ComputePerimeter,
bool);
140 itkGetConstReferenceMacro(ComputePerimeter,
bool);
141 itkBooleanMacro(ComputePerimeter);
148 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
160 this->SetInput(input);
166 this->SetFeatureImage(input);
175 itkSetMacro(ComputeHistogram,
bool);
176 itkGetConstReferenceMacro(ComputeHistogram,
bool);
177 itkBooleanMacro(ComputeHistogram);
185 itkSetMacro(NumberOfBins,
unsigned int);
186 itkGetConstReferenceMacro(NumberOfBins,
unsigned int);
192 void PrintSelf(std::ostream & os,
Indent indent)
const override;
197 void GenerateInputRequestedRegion()
override;
200 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) )
override;
204 void GenerateData()
override;
217 #ifndef ITK_MANUAL_INSTANTIATION
218 #include "itkBinaryImageToStatisticsLabelMapFilter.hxx"
typename OutputImageType::Pointer OutputImagePointer
typename FeatureImageType::ConstPointer FeatureImageConstPointer
void SetInput1(const InputImageType *input)
TFeatureImage FeatureImageType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename FeatureImageType::Pointer FeatureImagePointer
void SetInput2(const FeatureImageType *input)
Base class for all process objects that output image data.
OutputImagePixelType m_OutputBackgroundValue
TInputImage InputImageType
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
unsigned int m_NumberOfBins
InputImagePixelType m_InputForegroundValue
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
void SetFeatureImage(const TFeatureImage *input)
typename OutputImageType::ConstPointer OutputImageConstPointer
const FeatureImageType * GetFeatureImage()
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
typename OutputImageType::LabelObjectType LabelObjectType
bool m_ComputeFeretDiameter
typename InputImageType::RegionType InputImageRegionType
Label the connected components in a binary image and produce a collection of label objects...
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
a convenient class to convert a binary image to a label map and valuate the statistics attributes at ...
typename FeatureImageType::PixelType FeatureImagePixelType
The valuator class for the StatisticsLabelObject.
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
typename InputImageType::ConstPointer InputImageConstPointer
Base class for all data objects in ITK.