#include <itkSpatialNeighborSubsampler.h>
A subsampler that selects all points within the specified radius of the query point.
This class derives from RegionConstrainedSubsampler and returns all points within the Radius given by SetRadius(radius) as long as that point is also within the RegionConstraint. In order for this to work, a region corresponding to the Sample must be provided using SetSampleRegion(region)
This class assumes that the instance identifiers in the input sample correspond to the result of ComputeOffset() of the index of the corresponding point in the image region.
Definition at line 51 of file itkSpatialNeighborSubsampler.h.
Public Member Functions | |
virtual::itk::LightObject::Pointer | CreateAnother () const |
const char * | GetNameOfClass () const override |
virtual const RadiusType & | GetRadius () const |
virtual const bool & | GetRadiusInitialized () const |
void | Search (const InstanceIdentifier &query, SubsamplePointer &results) override |
void | SetRadius (const RadiusType &radius) |
void | SetRadius (unsigned int radius) |
![]() | |
virtual const RegionType & | GetRegionConstraint () const |
virtual const bool & | GetRegionConstraintInitialized () const |
virtual const RegionType & | GetSampleRegion () const |
virtual const bool & | GetSampleRegionInitialized () const |
void | SetRegionConstraint (const RegionType ®ion) |
void | SetSampleRegion (const RegionType ®ion) |
![]() | |
const char * | GetNameOfClass () const override |
itkCloneMacro (Self) | |
virtual void | SetSample (const SampleType *_arg) |
virtual const SampleType * | GetSample () const |
virtual void | SetCanSelectQuery (bool _arg) |
virtual const bool & | GetCanSelectQuery () const |
virtual void | CanSelectQueryOn () |
virtual void | CanSelectQueryOff () |
virtual void | SetSeed (SeedType _arg) |
virtual const SeedType & | GetSeed () const |
virtual void | RequestMaximumNumberOfResults () |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
![]() | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = RegionType::ImageDimension |
Protected Member Functions | |
LightObject::Pointer | InternalClone () const override |
void | PrintSelf (std::ostream &os, Indent indent) const override |
SpatialNeighborSubsampler () | |
~SpatialNeighborSubsampler () override=default | |
![]() | |
RegionConstrainedSubsampler () | |
~RegionConstrainedSubsampler () override=default | |
![]() | |
LightObject::Pointer | InternalClone () const override |
void | PrintSelf (std::ostream &os, Indent indent) const override |
SubsamplerBase () | |
~SubsamplerBase () override=default | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
![]() | |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes | |
RadiusType | m_Radius {} |
bool | m_RadiusInitialized {} |
![]() | |
RegionType | m_RegionConstraint {} |
bool | m_RegionConstraintInitialized {} |
RegionType | m_SampleRegion {} |
bool | m_SampleRegionInitialized {} |
![]() | |
bool | m_CanSelectQuery {} |
bool | m_RequestMaximumNumberOfResults {} |
SampleConstPointer | m_Sample {} |
SeedType | m_Seed {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >::Baseclass = typename Superclass::Baseclass |
Definition at line 59 of file itkSpatialNeighborSubsampler.h.
using itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >::ConstPointer = SmartPointer<const Self> |
Definition at line 61 of file itkSpatialNeighborSubsampler.h.
using itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >::ImageHelperType = ImageHelper<Self::ImageDimension, Self::ImageDimension> |
other helpful type alias
Definition at line 89 of file itkSpatialNeighborSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::IndexType |
Definition at line 82 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::IndexValueType |
Definition at line 83 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::InstanceIdentifier |
Definition at line 73 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::InstanceIdentifierHolder |
Definition at line 78 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::MeasurementVectorType |
Definition at line 72 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >::Pointer = SmartPointer<Self> |
Definition at line 60 of file itkSpatialNeighborSubsampler.h.
using itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >::RadiusType = typename RegionType::SizeType |
Definition at line 85 of file itkSpatialNeighborSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::RegionType |
type alias related to image region
Definition at line 81 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::SampleConstPointer |
Definition at line 71 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::SampleType |
type alias alias for the source data container
Definition at line 70 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >::Self = SpatialNeighborSubsampler<TSample, TRegion> |
Standard class type aliases
Definition at line 57 of file itkSpatialNeighborSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::SizeType |
Definition at line 84 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::SubsampleConstIterator |
Definition at line 77 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::SubsamplePointer |
Definition at line 76 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >::SubsampleType |
Definition at line 75 of file itkRegionConstrainedSubsampler.h.
using itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >::Superclass = RegionConstrainedSubsampler<TSample, TRegion> |
Definition at line 58 of file itkSpatialNeighborSubsampler.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >.
|
overridevirtual |
Reimplemented from itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >.
Reimplemented in itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >.
References SpatialNeighborSubsampler().
|
virtual |
Method to get the radius
|
virtual |
Method to get the flag indicating that radius has been initialized
|
overrideprotectedvirtual |
Clone the current subsampler. This does a complete copy of the subsampler state to the new subsampler
Reimplemented from itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >.
Reimplemented in itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >.
Reimplemented in itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >.
|
overridevirtual |
Main Search method that MUST be implemented by each subclass The Search method will find all points similar to query and return them as a Subsample. The definition of similar will be subclass- specific. And could mean spatial similarity or feature similarity etc.
Implements itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >.
Reimplemented in itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >.
void itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >::SetRadius | ( | const RadiusType & | radius | ) |
Method to set the radius
void itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >::SetRadius | ( | unsigned int | radius | ) |
Method to set the radius
|
staticconstexpr |
Definition at line 87 of file itkSpatialNeighborSubsampler.h.
|
protected |
Definition at line 127 of file itkSpatialNeighborSubsampler.h.
|
protected |
Definition at line 128 of file itkSpatialNeighborSubsampler.h.