18#ifndef itkKdTreeGenerator_h
19#define itkKdTreeGenerator_h
70template <
typename TSample>
116 itkGetConstMacro(SourceSample, TSample *);
123 itkGetConstMacro(BucketSize,
unsigned int);
137 this->GenerateData();
146 itkGetConstMacro(MeasurementVectorSize,
unsigned int);
166 virtual KdTreeNodeType *
168 unsigned int endIndex,
176 unsigned int endIndex,
183 TSample * m_SourceSample{};
192 unsigned int m_BucketSize{};
212#ifndef ITK_MANUAL_INSTANTIATION
213# include "itkKdTreeGenerator.hxx"
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Base class for most ITK classes.
This class generates a KdTree object without centroid information.
OutputPointer GetOutput()
typename TSample::MeasurementType MeasurementType
unsigned int MeasurementVectorSizeType
typename KdTreeType::KdTreeNodeType KdTreeNodeType
virtual KdTreeNodeType * GenerateNonterminalNode(unsigned int beginIndex, unsigned int endIndex, MeasurementVectorType &lowerBound, MeasurementVectorType &upperBound, unsigned int level)
typename SubsampleType::Pointer SubsamplePointer
SubsamplePointer GetSubsample()
void SetBucketSize(unsigned int size)
KdTreeNodeType * GenerateTreeLoop(unsigned int beginIndex, unsigned int endIndex, MeasurementVectorType &lowerBound, MeasurementVectorType &upperBound, unsigned int level)
typename TSample::MeasurementVectorType MeasurementVectorType
typename KdTreeType::Pointer OutputPointer
void SetSample(TSample *sample)
void PrintSelf(std::ostream &os, Indent indent) const override
~KdTreeGenerator() override=default
This class provides methods for k-nearest neighbor search and related data structures for a k-d tree.
This class stores a subset of instance identifiers from another sample object. You can create a subsa...
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
This class defines the interface of its derived classes.