|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkScalarImageKmeansImageFilter_h
19 #define itkScalarImageKmeansImageFilter_h
64 template <
typename TInputImage,
typename TOutputImage = Image<
unsigned char, TInputImage::ImageDimension>>
71 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
136 itkSetMacro(UseNonContiguousLabels,
bool);
137 itkGetConstReferenceMacro(UseNonContiguousLabels,
bool);
138 itkBooleanMacro(UseNonContiguousLabels);
148 #ifdef ITK_USE_CONCEPT_CHECKING
158 PrintSelf(std::ostream & os,
Indent indent)
const override;
166 GenerateData()
override;
171 VerifyPreconditions() ITKv5_CONST override;
180 bool m_UseNonContiguousLabels{
false };
184 bool m_ImageRegionDefined{
false };
188 #ifndef ITK_MANUAL_INSTANTIATION
189 # include "itkScalarImageKmeansImageFilter.hxx"
DistanceToCentroidMembershipFunction models class membership using a distance metric.
typename AdaptorType::MeasurementVectorType MeasurementVectorType
This class generates a KdTree object with centroid information.
typename ClassifierType::MembershipFunctionVectorType MembershipFunctionVectorType
Classifies the intensity values of a scalar image using the K-Means algorithm.
typename InputImageType::PixelType InputPixelType
typename DistanceMetricType::OriginType CentroidType
typename EstimatorType::ParametersType ParametersType
An image region represents a structured region of data.
This class provides ListSample interface to ITK Image.
typename MembershipFunctionType::Pointer MembershipFunctionPointer
typename Superclass::KdTreeType KdTreeType
typename ClassifierType::ClassLabelVectorType ClassLabelVectorType
Control indentation during Print() invocation.
typename OutputImageType::PixelType OutputPixelType
typename MeasurementPixelTraitsType::MeasurementVectorType MeasurementVectorType
Base class for filters that take an image as input and produce an image as output.
Base class for all process objects that output image data.
ImageBaseType::RegionType RegionType
fast k-means algorithm implementation using k-d tree structure
typename NumericTraits< InputPixelType >::RealType RealPixelType
typename MembershipFunctionType::CentroidType MembershipFunctionOriginType
TInputImage InputImageType
typename InputImageType::RegionType ImageRegionType
std::vector< MembershipFunctionPointer > MembershipFunctionVectorType
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
std::vector< RealPixelType > MeansContainer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
ImageRegionType m_ImageRegion
typename TreeGeneratorType::KdTreeType TreeType
std::vector< ClassLabelType > ClassLabelVectorType
Sample classification class.
Extract a region of interest from the input image.
A decision rule that returns the class label with the smallest discriminant score.
TOutputImage OutputImageType