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