18 #ifndef itkScalarImageKmeansImageFilter_h
19 #define itkScalarImageKmeansImageFilter_h
62 template<
typename TInputImage,
63 typename TOutputImage = Image< unsigned char, TInputImage::ImageDimension > >
69 itkStaticConstMacro(ImageDimension,
unsigned int,
70 TInputImage::ImageDimension);
136 itkSetMacro(UseNonContiguousLabels,
bool);
137 itkGetConstReferenceMacro(UseNonContiguousLabels,
bool);
138 itkBooleanMacro(UseNonContiguousLabels);
147 #ifdef ITK_USE_CONCEPT_CHECKING
157 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
164 void GenerateData() ITK_OVERRIDE;
168 virtual
void VerifyPreconditions() ITK_OVERRIDE;
175 MeansContainer m_InitialMeans;
179 bool m_UseNonContiguousLabels;
183 bool m_ImageRegionDefined;
187 #ifndef ITK_MANUAL_INSTANTIATION
188 #include "itkScalarImageKmeansImageFilter.hxx"
itk::Statistics::MinimumDecisionRule DecisionRuleType
fast k-means algorithm implementation using k-d tree structure
NumericTraits< InputPixelType >::RealType RealPixelType
itk::Statistics::ImageToListSampleAdaptor< InputImageType > AdaptorType
InputImageType::RegionType ImageRegionType
An image region represents a structured region of data.
SmartPointer< Self > Pointer
Base class for all process objects that output image data.
Superclass::KdTreeType KdTreeType
A decision rule that returns the class label with the smallest discriminant score.
ClassifierType::MembershipFunctionVectorType MembershipFunctionVectorType
InputImageType::PixelType InputPixelType
std::vector< RealPixelType > MeansContainer
itk::Statistics::KdTreeBasedKmeansEstimator< TreeType > EstimatorType
This class generates a KdTree object with centroid information.
itk::Statistics::DistanceToCentroidMembershipFunction< MeasurementVectorType > MembershipFunctionType
Sample classification class.
MeasurementPixelTraitsType::MeasurementVectorType MeasurementVectorType
std::vector< MembershipFunctionPointer > MembershipFunctionVectorType
itk::Statistics::SampleClassifierFilter< AdaptorType > ClassifierType
TOutputImage OutputImageType
TInputImage InputImageType
TInputImage InputImageType
ScalarImageKmeansImageFilter Self
OutputImageType::PixelType OutputPixelType
TreeGeneratorType::KdTreeType TreeType
Classifies the intensity values of a scalar image using the K-Means algorithm.
ClassifierType::ClassLabelVectorType ClassLabelVectorType
SmartPointer< const Self > ConstPointer
Extract a region of interest from the input image.
RegionOfInterestImageFilter< InputImageType, InputImageType > RegionOfInterestFilterType
DistanceToCentroidMembershipFunction models class membership using a distance metric.
std::vector< ClassLabelType > ClassLabelVectorType
Base class for filters that take an image as input and produce an image as output.
virtual ~ScalarImageKmeansImageFilter() override
Control indentation during Print() invocation.
ImageToImageFilter< InputImageType, OutputImageType > Superclass
Define additional traits for native types such as int or float.
This class provides ListSample interface to ITK Image.
#define itkConceptMacro(name, concept)
EstimatorType::ParametersType ParametersType
AdaptorType::MeasurementVectorType MeasurementVectorType
MembershipFunctionType::CentroidType MembershipFunctionOriginType
itk::Statistics::WeightedCentroidKdTreeGenerator< AdaptorType > TreeGeneratorType
MembershipFunctionType::Pointer MembershipFunctionPointer