18 #ifndef itkSubsamplerBase_h
19 #define itkSubsamplerBase_h
26 namespace Statistics {
45 template <
typename TSample >
84 itkSetMacro(CanSelectQuery,
bool);
85 itkGetConstReferenceMacro(CanSelectQuery,
bool);
86 itkBooleanMacro(CanSelectQuery);
93 itkGetConstReferenceMacro(Seed,
SeedType);
101 if (!this->m_RequestMaximumNumberOfResults)
103 this->m_RequestMaximumNumberOfResults =
true;
114 virtual void Search(
const InstanceIdentifier& query,
115 SubsamplePointer& results) = 0;
128 void PrintSelf(std::ostream& os,
Indent indent)
const override;
139 #ifndef ITK_MANUAL_INSTANTIATION
140 #include "itkSubsamplerBase.hxx"
Light weight base class for most itk classes.
typename SubsampleType::InstanceIdentifierHolder InstanceIdentifierHolder
std::vector< InstanceIdentifier > InstanceIdentifierHolder
typename SubsampleType::ConstIterator SubsampleConstIterator
This class stores a subset of instance identifiers from another sample object. You can create a subsa...
SampleConstPointer m_Sample
typename TSample::InstanceIdentifier InstanceIdentifier
typename TSample::MeasurementVectorType MeasurementVectorType
A collection of measurements for statistical analysis.
Control indentation during Print() invocation.
typename SampleType::ConstPointer SampleConstPointer
bool m_RequestMaximumNumberOfResults
Base class for most ITK classes.
virtual void RequestMaximumNumberOfResults()
This is the base subsampler class which defines the subsampler API.
typename SubsampleType::Pointer SubsamplePointer