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::RandomSampler< TElastix > Class Template Reference

An interpolator based on the itk::ImageRandomSampler. More...

#include <elxRandomSampler.h>

Inheritance diagram for elastix::RandomSampler< TElastix >:
Inheritance graph
[legend]
Collaboration diagram for elastix::RandomSampler< 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 RandomSampler Self
typedef ImageRandomSampler
< typename
elx::ImageSamplerBase
< TElastix >::InputImageType
Superclass1
typedef elx::ImageSamplerBase
< TElastix > 
Superclass2

Public Member Functions

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

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 RandomSampler ()
virtual ~RandomSampler ()

Private Member Functions

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

Detailed Description

template<class TElastix>
class elastix::RandomSampler< TElastix >

An interpolator based on the itk::ImageRandomSampler.

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 may take some time. In this case, consider using the RandomSparseMask image 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 "Random")
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 51 of file elxRandomSampler.h.


Member Typedef Documentation

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

Definition at line 102 of file elxRandomSampler.h.

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

Definition at line 101 of file elxRandomSampler.h.

template<class TElastix >
typedef SmartPointer<const Self> elastix::RandomSampler< TElastix >::ConstPointer
template<class TElastix >
typedef Superclass1::DataObjectPointer elastix::RandomSampler< TElastix >::DataObjectPointer

Typedefs inherited from the superclass.

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

Definition at line 81 of file elxRandomSampler.h.

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

Definition at line 100 of file elxRandomSampler.h.

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

Typedefs inherited from Elastix.

Definition at line 99 of file elxRandomSampler.h.

template<class TElastix >
typedef Superclass1::ImageSampleType elastix::RandomSampler< TElastix >::ImageSampleType
template<class TElastix >
typedef Superclass1::InputImageIndexType elastix::RandomSampler< TElastix >::InputImageIndexType
template<class TElastix >
typedef Superclass1::InputImagePixelType elastix::RandomSampler< TElastix >::InputImagePixelType
template<class TElastix >
typedef Superclass1::InputImagePointer elastix::RandomSampler< TElastix >::InputImagePointer
template<class TElastix >
typedef Superclass1::InputImagePointType elastix::RandomSampler< TElastix >::InputImagePointType
template<class TElastix >
typedef Superclass1::InputImageRegionType elastix::RandomSampler< TElastix >::InputImageRegionType
template<class TElastix >
typedef Superclass1::InputImageType elastix::RandomSampler< TElastix >::InputImageType
template<class TElastix >
typedef Superclass2::ITKBaseType elastix::RandomSampler< TElastix >::ITKBaseType

Definition at line 105 of file elxRandomSampler.h.

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

Definition at line 104 of file elxRandomSampler.h.

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

Definition at line 103 of file elxRandomSampler.h.

template<class TElastix >
typedef RandomSampler elastix::RandomSampler< TElastix >::Self

Standard ITK-stuff.

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

Definition at line 61 of file elxRandomSampler.h.

template<class TElastix >
typedef ImageRandomSampler< typename elx::ImageSamplerBase<TElastix>::InputImageType > elastix::RandomSampler< TElastix >::Superclass1

Definition at line 63 of file elxRandomSampler.h.

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

Definition at line 64 of file elxRandomSampler.h.


Constructor & Destructor Documentation

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

The constructor.

Definition at line 115 of file elxRandomSampler.h.

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

The destructor.

Definition at line 117 of file elxRandomSampler.h.

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

The private constructor.


Member Function Documentation

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

Execute stuff before each resolution:

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

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

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

Run-time type information (and related methods).

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

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

The input image dimension.

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

Method for creation through the object factory.

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

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

The private copy constructor.



Generated on 24-10-2011 for elastix by doxygen 1.7.4 elastix logo