go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions
elastix::RandomSamplerSparseMask< TElastix > Class Template Reference

#include <elxRandomSamplerSparseMask.h>

Inheritance diagram for elastix::RandomSamplerSparseMask< TElastix >:
Inheritance graph
[legend]
Collaboration diagram for elastix::RandomSamplerSparseMask< TElastix >:
Collaboration graph
[legend]

Public Types

typedef
Superclass2::ConfigurationPointer 
ConfigurationPointer
typedef
Superclass2::ConfigurationType 
ConfigurationType
typedef SmartPointer< const SelfConstPointer
typedef
Superclass1::DataObjectPointer 
DataObjectPointer
typedef Superclass2::ElastixPointer ElastixPointer
typedef Superclass2::ElastixType ElastixType
typedef
Superclass1::ImageSampleContainerType 
ImageSampleContainerType
typedef
Superclass1::ImageSampleType 
ImageSampleType
typedef
Superclass1::InputImageConstPointer 
InputImageConstPointer
typedef
Superclass1::InputImageIndexType 
InputImageIndexType
typedef
Superclass1::InputImagePixelType 
InputImagePixelType
typedef
Superclass1::InputImagePointer 
InputImagePointer
typedef
Superclass1::InputImagePointType 
InputImagePointType
typedef
Superclass1::InputImageRegionType 
InputImageRegionType
typedef Superclass1::InputImageType InputImageType
typedef Superclass2::ITKBaseType ITKBaseType
typedef Superclass1::MaskType MaskType
typedef
Superclass1::OutputVectorContainerPointer 
OutputVectorContainerPointer
typedef
Superclass1::OutputVectorContainerType 
OutputVectorContainerType
typedef SmartPointer< SelfPointer
typedef
Superclass2::RegistrationPointer 
RegistrationPointer
typedef
Superclass2::RegistrationType 
RegistrationType
typedef RandomSamplerSparseMask Self
typedef
ImageRandomSamplerSparseMask
< typename
elx::ImageSamplerBase
< TElastix >::InputImageType
Superclass1
typedef elx::ImageSamplerBase
< TElastix > 
Superclass2

Public Member Functions

virtual void BeforeEachResolution (void)
 elxClassNameMacro ("RandomSparseMask")
virtual const char * GetClassName () const
 itkStaticConstMacro (InputImageDimension, unsigned int, Superclass1::InputImageDimension)

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 RandomSamplerSparseMask ()
virtual ~RandomSamplerSparseMask ()

Private Member Functions

void operator= (const Self &)
 RandomSamplerSparseMask (const Self &)

Detailed Description

template<class TElastix>
class elastix::RandomSamplerSparseMask< TElastix >

An interpolator based on the itk::ImageRandomSamplerSparseMask.

This image sampler randomly samples 'NumberOfSamples' voxels in the InputImageRegion. Voxels may be selected multiple times. If a mask is given, the sampler tries to find samples within the mask. If the mask is very sparse, this image sampler is a better choice than the random sampler.

Todo:
Write something similar for the RandomCoordinate sampler.

This sampler is suitable to used in combination with the NewSamplesEveryIteration parameter (defined in the elx::OptimizerBase).

The parameters used in this class are:

Parameters:
ImageSampler: Select this image sampler as follows:
(ImageSampler "RandomSparseMask")
Parameters:
NumberOfSpatialSamples: The number of image voxels used for computing the metric value and its derivative in each iteration. Must be given for each resolution.
example: (NumberOfSpatialSamples 2048 2048 4000)
The default is 5000.

Definition at line 53 of file elxRandomSamplerSparseMask.h.


Member Typedef Documentation

template<class TElastix >
typedef Superclass2::ConfigurationPointer elastix::RandomSamplerSparseMask< TElastix >::ConfigurationPointer

Definition at line 104 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
typedef Superclass2::ConfigurationType elastix::RandomSamplerSparseMask< TElastix >::ConfigurationType

Definition at line 103 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
typedef SmartPointer<const Self> elastix::RandomSamplerSparseMask< TElastix >::ConstPointer

Typedefs inherited from the superclass.

Reimplemented from itk::ImageRandomSamplerSparseMask< elx::ImageSamplerBase< TElastix >::InputImageType >.

Definition at line 83 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
typedef Superclass2::ElastixPointer elastix::RandomSamplerSparseMask< TElastix >::ElastixPointer

Definition at line 102 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
typedef Superclass2::ElastixType elastix::RandomSamplerSparseMask< TElastix >::ElastixType

Typedefs inherited from Elastix.

Definition at line 101 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
typedef Superclass1::ImageSampleType elastix::RandomSamplerSparseMask< TElastix >::ImageSampleType
template<class TElastix >
typedef Superclass1::InputImageType elastix::RandomSamplerSparseMask< TElastix >::InputImageType
template<class TElastix >
typedef Superclass2::ITKBaseType elastix::RandomSamplerSparseMask< TElastix >::ITKBaseType

Definition at line 107 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
typedef Superclass1::MaskType elastix::RandomSamplerSparseMask< TElastix >::MaskType
template<class TElastix >
typedef SmartPointer<Self> elastix::RandomSamplerSparseMask< TElastix >::Pointer
template<class TElastix >
typedef Superclass2::RegistrationPointer elastix::RandomSamplerSparseMask< TElastix >::RegistrationPointer

Definition at line 106 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
typedef Superclass2::RegistrationType elastix::RandomSamplerSparseMask< TElastix >::RegistrationType

Definition at line 105 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
typedef RandomSamplerSparseMask elastix::RandomSamplerSparseMask< TElastix >::Self
template<class TElastix >
typedef ImageRandomSamplerSparseMask< typename elx::ImageSamplerBase<TElastix>::InputImageType > elastix::RandomSamplerSparseMask< TElastix >::Superclass1

Definition at line 65 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
typedef elx::ImageSamplerBase<TElastix> elastix::RandomSamplerSparseMask< TElastix >::Superclass2

Definition at line 66 of file elxRandomSamplerSparseMask.h.


Constructor & Destructor Documentation

template<class TElastix >
elastix::RandomSamplerSparseMask< TElastix >::RandomSamplerSparseMask ( ) [inline, protected]

The constructor.

Definition at line 117 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
virtual elastix::RandomSamplerSparseMask< TElastix >::~RandomSamplerSparseMask ( ) [inline, protected, virtual]

The destructor.

Definition at line 119 of file elxRandomSamplerSparseMask.h.

template<class TElastix >
elastix::RandomSamplerSparseMask< TElastix >::RandomSamplerSparseMask ( const Self ) [private]

The private constructor.


Member Function Documentation

template<class TElastix >
virtual void elastix::RandomSamplerSparseMask< TElastix >::BeforeEachResolution ( void  ) [virtual]

Execute stuff before each resolution:

  • Set the number of samples.
template<class TElastix >
elastix::RandomSamplerSparseMask< TElastix >::elxClassNameMacro ( "RandomSparseMask"  )

Name of this class. Use this name in the parameter file to select this specific interpolator.
example: (ImageSampler "RandomSparseMask")

template<class TElastix >
virtual const char* elastix::RandomSamplerSparseMask< TElastix >::GetClassName ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::ImageRandomSamplerSparseMask< elx::ImageSamplerBase< TElastix >::InputImageType >.

template<class TElastix >
elastix::RandomSamplerSparseMask< TElastix >::itkStaticConstMacro ( InputImageDimension  ,
unsigned  int,
Superclass1::InputImageDimension   
)

The input image dimension.

template<class TElastix >
static Pointer elastix::RandomSamplerSparseMask< TElastix >::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::ImageRandomSamplerSparseMask< elx::ImageSamplerBase< TElastix >::InputImageType >.

template<class TElastix >
void elastix::RandomSamplerSparseMask< TElastix >::operator= ( const Self ) [private]

The private copy constructor.



Generated on 24-05-2012 for elastix by doxygen 1.7.6.1 elastix logo