ITK
6.0.0
Insight Toolkit
|
#include <itkUniformRandomSpatialNeighborSubsampler.h>
A subsampler that uniformly randomly selects points within the specified radius of the query point.
This class derives from SpatialNeighborSubsampler and randomly selects points according to a uniform distribution within the Radius given by SetRadius(radius) as long as that point is also within the RegionConstraint.
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 49 of file itkUniformRandomSpatialNeighborSubsampler.h.
Public Member Functions | |
const char * | GetNameOfClass () const override |
virtual SearchSizeType | GetNumberOfResultsRequested () const |
virtual bool | GetUseClockForSeed () const |
void | Search (const InstanceIdentifier &query, SubsamplePointer &results) override |
virtual void | SetNumberOfResultsRequested (const SearchSizeType &numberRequested) |
void | SetSeed (const SeedType seed) override |
virtual void | SetUseClockForSeed (const bool &useClock) |
virtual void | UseClockForSeedOn () |
Public Member Functions inherited from itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion > | |
virtual const RadiusType & | GetRadius () const |
virtual const bool & | GetRadiusInitialized () const |
void | SetRadius (const RadiusType &radius) |
void | SetRadius (unsigned int radius) |
Public Member Functions inherited from itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion > | |
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) |
Public Member Functions inherited from itk::Statistics::SubsamplerBase< TSample > | |
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 const SeedType & | GetSeed () const |
virtual void | RequestMaximumNumberOfResults () |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
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 |
Public Member Functions inherited from itk::LightObject | |
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 Public Member Functions inherited from itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions | |
virtual RandomIntType | GetIntegerVariate (RandomIntType lowerBound, RandomIntType upperBound, RandomIntType) |
LightObject::Pointer | InternalClone () const override |
void | PrintSelf (std::ostream &os, Indent indent) const override |
UniformRandomSpatialNeighborSubsampler () | |
~UniformRandomSpatialNeighborSubsampler () override=default | |
Protected Member Functions inherited from itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion > | |
SpatialNeighborSubsampler () | |
~SpatialNeighborSubsampler () override=default | |
Protected Member Functions inherited from itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion > | |
RegionConstrainedSubsampler () | |
~RegionConstrainedSubsampler () override=default | |
Protected Member Functions inherited from itk::Statistics::SubsamplerBase< TSample > | |
SubsamplerBase () | |
~SubsamplerBase () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes | |
SearchSizeType | m_NumberOfResultsRequested {} |
RandomGeneratorType::Pointer | m_RandomNumberGenerator {} |
bool | m_UseClockForSeed {} |
Protected Attributes inherited from itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion > | |
RadiusType | m_Radius {} |
bool | m_RadiusInitialized {} |
Protected Attributes inherited from itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion > | |
RegionType | m_RegionConstraint {} |
bool | m_RegionConstraintInitialized {} |
RegionType | m_SampleRegion {} |
bool | m_SampleRegionInitialized {} |
Protected Attributes inherited from itk::Statistics::SubsamplerBase< TSample > | |
bool | m_CanSelectQuery {} |
bool | m_RequestMaximumNumberOfResults {} |
SampleConstPointer | m_Sample {} |
SeedType | m_Seed {} |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
Additional Inherited Members | |
Static Public Attributes inherited from itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion > | |
static constexpr unsigned int | ImageDimension = RegionType::ImageDimension |
using itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >::Baseclass = typename Superclass::Baseclass |
Definition at line 57 of file itkUniformRandomSpatialNeighborSubsampler.h.
using itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >::ConstPointer = SmartPointer<const Self> |
Definition at line 59 of file itkUniformRandomSpatialNeighborSubsampler.h.
using itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >::Pointer = SmartPointer<Self> |
Definition at line 58 of file itkUniformRandomSpatialNeighborSubsampler.h.
using itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >::RandomGeneratorType = Statistics::MersenneTwisterRandomVariateGenerator |
type alias related to random variate generator
Definition at line 92 of file itkUniformRandomSpatialNeighborSubsampler.h.
using itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >::RandomIntType = unsigned int |
Definition at line 80 of file itkUniformRandomSpatialNeighborSubsampler.h.
using itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >::SearchSizeType = unsigned long |
Definition at line 79 of file itkUniformRandomSpatialNeighborSubsampler.h.
using itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >::SeedType = typename Baseclass::SeedType |
Definition at line 77 of file itkUniformRandomSpatialNeighborSubsampler.h.
using itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >::Self = UniformRandomSpatialNeighborSubsampler<TSample, TRegion> |
Standard class type aliases
Definition at line 55 of file itkUniformRandomSpatialNeighborSubsampler.h.
using itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >::Superclass = SpatialNeighborSubsampler<TSample, TRegion> |
Definition at line 56 of file itkUniformRandomSpatialNeighborSubsampler.h.
|
protected |
|
overrideprotecteddefault |
|
protectedvirtual |
method to randomly generate an integer in the closed range [lowerBound, upperBound] using a uniform sampling selection method. override this method to do gaussian selection
Reimplemented in itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >.
|
overridevirtual |
Reimplemented from itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >.
|
virtual |
|
virtual |
|
overrideprotectedvirtual |
Clone the current subsampler. This does a complete copy of the subsampler state to the new subsampler
Reimplemented from itk::Statistics::SpatialNeighborSubsampler< 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::SpatialNeighborSubsampler< 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.
Reimplemented from itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >.
|
inlinevirtual |
Definition at line 119 of file itkUniformRandomSpatialNeighborSubsampler.h.
|
inlineoverridevirtual |
Provide an interface to set the seed. The seed value will be used by subclasses where appropriate.
Reimplemented from itk::Statistics::SubsamplerBase< TSample >.
Definition at line 95 of file itkUniformRandomSpatialNeighborSubsampler.h.
|
inlinevirtual |
Definition at line 102 of file itkUniformRandomSpatialNeighborSubsampler.h.
|
virtual |
|
protected |
Definition at line 161 of file itkUniformRandomSpatialNeighborSubsampler.h.
|
protected |
Definition at line 162 of file itkUniformRandomSpatialNeighborSubsampler.h.
|
protected |
Definition at line 163 of file itkUniformRandomSpatialNeighborSubsampler.h.