18#ifndef itkSpatialNeighborSubsampler_h
19#define itkSpatialNeighborSubsampler_h
50template <
typename TSample,
typename TRegion>
70 using typename Superclass::SampleType;
71 using typename Superclass::SampleConstPointer;
72 using typename Superclass::MeasurementVectorType;
73 using typename Superclass::InstanceIdentifier;
75 using typename Superclass::SubsampleType;
76 using typename Superclass::SubsamplePointer;
77 using typename Superclass::SubsampleConstIterator;
78 using typename Superclass::InstanceIdentifierHolder;
87 static constexpr unsigned int ImageDimension = RegionType::ImageDimension;
102 itkGetConstReferenceMacro(RadiusInitialized,
bool);
128 bool m_RadiusInitialized{};
134#ifndef ITK_MANUAL_INSTANTIATION
135# include "itkSpatialNeighborSubsampler.hxx"
Fast Index/Offset computation.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
This an abstract subsampler that constrains subsamples to be contained within a given image region.
typename Superclass::Baseclass Baseclass
typename TSample::InstanceIdentifier InstanceIdentifier
typename SubsampleType::Pointer SubsamplePointer
A subsampler that selects all points within the specified radius of the query point.
void SetRadius(const RadiusType &radius)
SpatialNeighborSubsampler()
void Search(const InstanceIdentifier &query, SubsamplePointer &results) override
void SetRadius(unsigned int radius)
~SpatialNeighborSubsampler() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
LightObject::Pointer InternalClone() const override
typename RegionType::SizeType RadiusType
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....