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 > > >
73 itkStaticConstMacro(InputImageDimension,
unsigned int,
74 TInputImage::ImageDimension);
75 itkStaticConstMacro(OutputImageDimension,
unsigned int,
76 TInputImage::ImageDimension);
77 itkStaticConstMacro(ImageDimension,
unsigned int,
78 TInputImage::ImageDimension);
91 #ifdef ITK_USE_CONCEPT_CHECKING
114 itkSetMacro(ComputeFeretDiameter,
bool);
115 itkGetConstReferenceMacro(ComputeFeretDiameter,
bool);
116 itkBooleanMacro(ComputeFeretDiameter);
123 itkSetMacro(ComputePerimeter,
bool);
124 itkGetConstReferenceMacro(ComputePerimeter,
bool);
125 itkBooleanMacro(ComputePerimeter);
132 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
144 this->SetInput(input);
150 this->SetFeatureImage(input);
159 itkSetMacro(ComputeHistogram,
bool);
160 itkGetConstReferenceMacro(ComputeHistogram,
bool);
161 itkBooleanMacro(ComputeHistogram);
169 itkSetMacro(NumberOfBins,
unsigned int);
170 itkGetConstReferenceMacro(NumberOfBins,
unsigned int);
176 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
181 void GenerateInputRequestedRegion() ITK_OVERRIDE;
184 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
188 void GenerateData() ITK_OVERRIDE;
194 bool m_ComputeFeretDiameter;
195 bool m_ComputePerimeter;
196 unsigned int m_NumberOfBins;
197 bool m_ComputeHistogram;
201 #ifndef ITK_MANUAL_INSTANTIATION
202 #include "itkLabelImageToStatisticsLabelMapFilter.hxx"
FeatureImageType::Pointer FeatureImagePointer
convert a labeled image to a label collection image
SmartPointer< const Self > ConstPointer
OutputImageType::Pointer OutputImagePointer
InputImageType::Pointer InputImagePointer
OutputImageType::LabelObjectType LabelObjectType
LabelImageToLabelMapFilter< InputImageType, OutputImageType > LabelizerType
OutputImageType::RegionType OutputImageRegionType
SmartPointer< Self > Pointer
~LabelImageToStatisticsLabelMapFilter() override
TOutputImage OutputImageType
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.
FeatureImageType::ConstPointer FeatureImageConstPointer
InputImageType::ConstPointer InputImageConstPointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
LabelImageToStatisticsLabelMapFilter Self
void SetFeatureImage(const TFeatureImage *input)
OutputImageType::ConstPointer OutputImageConstPointer
void SetInput1(const InputImageType *input)
TInputImage InputImageType
OutputImageType::PixelType OutputImagePixelType
OutputImageType::PixelType OutputImagePixelType
InputImageType::PixelType InputImagePixelType
TInputImage InputImageType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
const FeatureImageType * GetFeatureImage()
void SetInput2(const FeatureImageType *input)
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
InputImageType::RegionType InputImageRegionType
FeatureImageType::PixelType FeatureImagePixelType
The valuator class for the StatisticsLabelObject.
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.
StatisticsLabelMapFilter< OutputImageType, FeatureImageType > LabelObjectValuatorType
TFeatureImage FeatureImageType