18 #ifndef itkBinaryImageToStatisticsLabelMapFilter_h
19 #define itkBinaryImageToStatisticsLabelMapFilter_h
40 template<
typename TInputImage,
typename TFeatureImage,
typename TOutputImage =
41 LabelMap< StatisticsLabelObject< SizeValueType, TInputImage::ImageDimension > > >
72 itkStaticConstMacro(InputImageDimension,
unsigned int,
73 TInputImage::ImageDimension);
74 itkStaticConstMacro(OutputImageDimension,
unsigned int,
75 TInputImage::ImageDimension);
76 itkStaticConstMacro(ImageDimension,
unsigned int,
77 TInputImage::ImageDimension);
96 itkSetMacro(FullyConnected,
bool);
97 itkGetConstReferenceMacro(FullyConnected,
bool);
98 itkBooleanMacro(FullyConnected);
101 #ifdef ITK_USE_CONCEPT_CHECKING
132 itkSetMacro(ComputeFeretDiameter,
bool);
133 itkGetConstReferenceMacro(ComputeFeretDiameter,
bool);
134 itkBooleanMacro(ComputeFeretDiameter);
141 itkSetMacro(ComputePerimeter,
bool);
142 itkGetConstReferenceMacro(ComputePerimeter,
bool);
143 itkBooleanMacro(ComputePerimeter);
150 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
162 this->SetInput(input);
168 this->SetFeatureImage(input);
177 itkSetMacro(ComputeHistogram,
bool);
178 itkGetConstReferenceMacro(ComputeHistogram,
bool);
179 itkBooleanMacro(ComputeHistogram);
187 itkSetMacro(NumberOfBins,
unsigned int);
188 itkGetConstReferenceMacro(NumberOfBins,
unsigned int);
194 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
199 void GenerateInputRequestedRegion() ITK_OVERRIDE;
202 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
206 void GenerateData() ITK_OVERRIDE;
211 bool m_FullyConnected;
214 bool m_ComputeFeretDiameter;
215 bool m_ComputePerimeter;
216 unsigned int m_NumberOfBins;
217 bool m_ComputeHistogram;
221 #ifndef ITK_MANUAL_INSTANTIATION
222 #include "itkBinaryImageToStatisticsLabelMapFilter.hxx"
InputImageType::PixelType InputImagePixelType
FeatureImageType::Pointer FeatureImagePointer
InputImageType::ConstPointer InputImageConstPointer
void SetInput1(const InputImageType *input)
~BinaryImageToStatisticsLabelMapFilter() override
SmartPointer< Self > Pointer
void SetInput2(const FeatureImageType *input)
BinaryImageToStatisticsLabelMapFilter Self
Base class for all process objects that output image data.
OutputImageType::ConstPointer OutputImageConstPointer
BinaryImageToLabelMapFilter< InputImageType, OutputImageType > LabelizerType
FeatureImageType::ConstPointer FeatureImageConstPointer
OutputImageType::PixelType OutputImagePixelType
void SetFeatureImage(const TFeatureImage *input)
InputImageType::Pointer InputImagePointer
OutputImageType::Pointer OutputImagePointer
TInputImage InputImageType
TOutputImage OutputImageType
const FeatureImageType * GetFeatureImage()
OutputImageType::PixelType OutputImagePixelType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
TInputImage InputImageType
StatisticsLabelMapFilter< OutputImageType, FeatureImageType > LabelObjectValuatorType
SmartPointer< const Self > ConstPointer
InputImageType::PixelType InputImagePixelType
Label the connected components in a binary image and produce a collection of label objects...
ImageToImageFilter< TInputImage, TOutputImage > Superclass
OutputImageType::RegionType OutputImageRegionType
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 ...
InputImageType::RegionType InputImageRegionType
The valuator class for the StatisticsLabelObject.
#define itkConceptMacro(name, concept)
OutputImageType::LabelObjectType LabelObjectType
TFeatureImage FeatureImageType
Base class for all data objects in ITK.
FeatureImageType::PixelType FeatureImagePixelType