ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkGaussianRandomSpatialNeighborSubsampler.h>
A subsampler that randomly selects points according to a gaussian distribution within the specified radius of the query point.
This class derives from UniformRandomNeighborSubsampler and overrides the GetIntegerVariate method to randomly select points according to a gaussian distribution within the Radius given by SetRadius(radius) as long as that point is also within the RegionConstraint. Use SetVariance(variance) to provide the variance of the gaussian distribution.
Definition at line 45 of file itkGaussianRandomSpatialNeighborSubsampler.h.
Public Types | |
using | Baseclass = typename Superclass::Baseclass |
using | ConstPointer = SmartPointer< const Self > |
using | ImageHelperType = typename Superclass::ImageHelperType |
using | IndexType = typename Superclass::IndexType |
using | InstanceIdentifier = typename Superclass::InstanceIdentifier |
using | InstanceIdentifierHolder = typename Superclass::InstanceIdentifierHolder |
using | MeasurementVectorType = typename Superclass::MeasurementVectorType |
using | Pointer = SmartPointer< Self > |
using | RadiusType = typename Superclass::RadiusType |
using | RandomGeneratorType = typename Superclass::RandomGeneratorType |
using | RandomIntType = typename Superclass::RandomIntType |
using | RealType = double |
using | RegionType = typename Superclass::RegionType |
using | SampleConstPointer = typename Superclass::SampleConstPointer |
using | SampleType = typename Superclass::SampleType |
using | SearchSizeType = typename Superclass::SearchSizeType |
using | Self = GaussianRandomSpatialNeighborSubsampler< TSample, TRegion > |
using | SizeType = typename Superclass::SizeType |
using | SubsampleConstIterator = typename Superclass::SubsampleConstIterator |
using | SubsamplePointer = typename Superclass::SubsamplePointer |
using | SubsampleType = typename Superclass::SubsampleType |
using | Superclass = UniformRandomSpatialNeighborSubsampler< TSample, TRegion > |
Public Types inherited from itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion > | |
using | Baseclass = typename Superclass::Baseclass |
using | ConstPointer = SmartPointer< const Self > |
using | ImageHelperType = typename Superclass::ImageHelperType |
using | IndexType = typename Superclass::IndexType |
using | IndexValueType = typename Superclass::IndexValueType |
using | InstanceIdentifier = typename Superclass::InstanceIdentifier |
using | InstanceIdentifierHolder = typename Superclass::InstanceIdentifierHolder |
using | MeasurementVectorType = typename Superclass::MeasurementVectorType |
using | Pointer = SmartPointer< Self > |
using | RadiusType = typename Superclass::RadiusType |
using | RandomGeneratorType = Statistics::MersenneTwisterRandomVariateGenerator |
using | RandomIntType = unsigned int |
using | RegionType = typename Superclass::RegionType |
using | SampleConstPointer = typename Superclass::SampleConstPointer |
using | SampleType = typename Superclass::SampleType |
using | SearchSizeType = unsigned long |
using | SeedType = typename Baseclass::SeedType |
using | Self = UniformRandomSpatialNeighborSubsampler< TSample, TRegion > |
using | SizeType = typename Superclass::SizeType |
using | SubsampleConstIterator = typename Superclass::SubsampleConstIterator |
using | SubsamplePointer = typename Superclass::SubsamplePointer |
using | SubsampleType = typename Superclass::SubsampleType |
using | Superclass = SpatialNeighborSubsampler< TSample, TRegion > |
Public Types inherited from itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion > | |
using | Baseclass = typename Superclass::Baseclass |
using | ConstPointer = SmartPointer< const Self > |
using | ImageHelperType = ImageHelper< Self::ImageDimension, Self::ImageDimension > |
using | IndexType = typename Superclass::IndexType |
using | IndexValueType = typename Superclass::IndexValueType |
using | InstanceIdentifier = typename Superclass::InstanceIdentifier |
using | InstanceIdentifierHolder = typename Superclass::InstanceIdentifierHolder |
using | MeasurementVectorType = typename Superclass::MeasurementVectorType |
using | Pointer = SmartPointer< Self > |
using | RadiusType = typename RegionType::SizeType |
using | RegionType = typename Superclass::RegionType |
using | SampleConstPointer = typename Superclass::SampleConstPointer |
using | SampleType = typename Superclass::SampleType |
using | Self = SpatialNeighborSubsampler< TSample, TRegion > |
using | SizeType = typename Superclass::SizeType |
using | SubsampleConstIterator = typename Superclass::SubsampleConstIterator |
using | SubsamplePointer = typename Superclass::SubsamplePointer |
using | SubsampleType = typename Superclass::SubsampleType |
using | Superclass = RegionConstrainedSubsampler< TSample, TRegion > |
Public Types inherited from itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion > | |
using | Baseclass = typename Superclass::Baseclass |
using | ConstPointer = SmartPointer< const Self > |
using | IndexType = typename RegionType::IndexType |
using | IndexValueType = typename IndexType::IndexValueType |
using | InstanceIdentifier = typename TSample::InstanceIdentifier |
using | InstanceIdentifierHolder = typename SubsampleType::InstanceIdentifierHolder |
using | MeasurementVectorType = typename TSample::MeasurementVectorType |
using | Pointer = SmartPointer< Self > |
using | RegionType = TRegion |
using | SampleConstPointer = typename SampleType::ConstPointer |
using | SampleType = TSample |
using | Self = RegionConstrainedSubsampler< TSample, TRegion > |
using | SizeType = typename RegionType::SizeType |
using | SubsampleConstIterator = typename SubsampleType::ConstIterator |
using | SubsamplePointer = typename SubsampleType::Pointer |
using | SubsampleType = Subsample< TSample > |
using | Superclass = SubsamplerBase< TSample > |
Public Types inherited from itk::Statistics::SubsamplerBase< TSample > | |
using | Baseclass = Self |
using | ConstPointer = SmartPointer< const Self > |
using | InstanceIdentifier = typename TSample::InstanceIdentifier |
using | InstanceIdentifierHolder = typename SubsampleType::InstanceIdentifierHolder |
using | MeasurementVectorType = typename TSample::MeasurementVectorType |
using | Pointer = SmartPointer< Self > |
using | SampleConstPointer = typename SampleType::ConstPointer |
using | SampleType = TSample |
using | SeedType = unsigned int |
using | Self = SubsamplerBase |
using | SubsampleConstIterator = typename SubsampleType::ConstIterator |
using | SubsamplePointer = typename SubsampleType::Pointer |
using | SubsampleType = Subsample< TSample > |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
virtual const char * | GetNameOfClass () const |
virtual RealType | GetVariance () const |
virtual void | SetVariance (RealType _arg) |
Public Member Functions inherited from itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion > | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
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 | UseClockForSeedOff () |
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 void | CanSelectQueryOff () |
virtual const SeedType & | GetSeed () const |
virtual void | RequestMaximumNumberOfResults () |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) 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) |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexceptoverride |
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 | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion > | |
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 flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr int | DefaultVariance = 900 |
Static Public Attributes inherited from itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion > | |
static constexpr unsigned int | ImageDimension = RegionType::ImageDimension |
Protected Attributes | |
RealType | m_Variance |
Protected Attributes inherited from itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion > | |
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 |
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::Baseclass = typename Superclass::Baseclass |
Definition at line 53 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::ConstPointer = SmartPointer<const Self> |
Definition at line 55 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::ImageHelperType = typename Superclass::ImageHelperType |
Definition at line 82 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::IndexType = typename Superclass::IndexType |
Definition at line 80 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::InstanceIdentifier = typename Superclass::InstanceIdentifier |
Definition at line 68 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::InstanceIdentifierHolder = typename Superclass::InstanceIdentifierHolder |
Definition at line 73 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::MeasurementVectorType = typename Superclass::MeasurementVectorType |
Definition at line 67 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::Pointer = SmartPointer<Self> |
Definition at line 54 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::RadiusType = typename Superclass::RadiusType |
type alias related to image region
Definition at line 78 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::RandomGeneratorType = typename Superclass::RandomGeneratorType |
Definition at line 86 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::RandomIntType = typename Superclass::RandomIntType |
Definition at line 76 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::RealType = double |
Definition at line 84 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::RegionType = typename Superclass::RegionType |
Definition at line 79 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::SampleConstPointer = typename Superclass::SampleConstPointer |
Definition at line 66 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::SampleType = typename Superclass::SampleType |
type alias alias for the source data container
Definition at line 65 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::SearchSizeType = typename Superclass::SearchSizeType |
Definition at line 75 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::Self = GaussianRandomSpatialNeighborSubsampler<TSample, TRegion> |
Standard class type aliases
Definition at line 51 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::SizeType = typename Superclass::SizeType |
Definition at line 81 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::SubsampleConstIterator = typename Superclass::SubsampleConstIterator |
Definition at line 72 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::SubsamplePointer = typename Superclass::SubsamplePointer |
Definition at line 71 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::SubsampleType = typename Superclass::SubsampleType |
Definition at line 70 of file itkGaussianRandomSpatialNeighborSubsampler.h.
using itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >::Superclass = UniformRandomSpatialNeighborSubsampler<TSample, TRegion> |
Definition at line 52 of file itkGaussianRandomSpatialNeighborSubsampler.h.
|
protected |
|
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.
|
overrideprotected |
method to randomly generate an integer in the closed range [0, upperBound] usign a gaussian selection method.
|
virtual |
Run-time type information (and related methods)
Reimplemented from itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >.
|
virtual |
Get the variance
|
overrideprotectedvirtual |
Clone the current subsampler. This does a complete copy of the subsampler state to the new subsampler
Reimplemented from itk::LightObject.
|
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::Object.
|
virtual |
Set the variance
|
static |
Default sampling variance
Definition at line 88 of file itkGaussianRandomSpatialNeighborSubsampler.h.
|
protected |
Definition at line 116 of file itkGaussianRandomSpatialNeighborSubsampler.h.