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 52 of file elxRandomSampler.h.
|
| typedef Superclass2::ConfigurationPointer | ConfigurationPointer |
| |
| typedef Superclass2::ConfigurationType | ConfigurationType |
| |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| |
| 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 itk::SmartPointer< Self > | Pointer |
| |
| typedef Superclass2::RegistrationPointer | RegistrationPointer |
| |
| typedef Superclass2::RegistrationType | RegistrationType |
| |
| typedef RandomSampler | Self |
| |
| typedef itk::ImageRandomSampler< typename elx::ImageSamplerBase< TElastix >::InputImageType > | Superclass1 |
| |
| typedef elx::ImageSamplerBase< TElastix > | Superclass2 |
| |
Public Types inherited from itk::ImageRandomSampler< elx::ImageSamplerBase< TElastix >::InputImageType > |
| typedef SmartPointer< const Self > | ConstPointer |
| |
| typedef Superclass::DataObjectPointer | DataObjectPointer |
| |
| typedef Superclass::ImageSampleContainerPointer | ImageSampleContainerPointer |
| |
| typedef Superclass::ImageSampleContainerType | ImageSampleContainerType |
| |
| typedef Superclass::ImageSampleType | ImageSampleType |
| |
| typedef Superclass::ImageSampleValueType | ImageSampleValueType |
| |
| typedef Superclass::InputImageConstPointer | InputImageConstPointer |
| |
| typedef InputImageType::IndexType | InputImageIndexType |
| |
| typedef Superclass::InputImagePixelType | InputImagePixelType |
| |
| typedef Superclass::InputImagePointer | InputImagePointer |
| |
| typedef InputImageType::PointType | InputImagePointType |
| |
| typedef Superclass::InputImageRegionType | InputImageRegionType |
| |
| typedef Superclass::InputImageSizeType | InputImageSizeType |
| |
| typedef Superclass::InputImageType | InputImageType |
| |
| typedef Superclass::MaskType | MaskType |
| |
| typedef Superclass::OutputVectorContainerPointer | OutputVectorContainerPointer |
| |
| typedef Superclass::OutputVectorContainerType | OutputVectorContainerType |
| |
| typedef SmartPointer< Self > | Pointer |
| |
| typedef ImageRandomSampler | Self |
| |
| typedef ImageRandomSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType > | Superclass |
| |
Public Types inherited from itk::ImageRandomSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType > |
| typedef SmartPointer< const Self > | ConstPointer |
| |
| typedef Superclass::DataObjectPointer | DataObjectPointer |
| |
| typedef Superclass::ImageSampleContainerPointer | ImageSampleContainerPointer |
| |
| typedef Superclass::ImageSampleContainerType | ImageSampleContainerType |
| |
| typedef Superclass::ImageSampleType | ImageSampleType |
| |
| typedef Superclass::InputImageConstPointer | InputImageConstPointer |
| |
| typedef Superclass::InputImagePixelType | InputImagePixelType |
| |
| typedef Superclass::InputImagePointer | InputImagePointer |
| |
| typedef Superclass::InputImageRegionType | InputImageRegionType |
| |
| typedef Superclass::InputImageType | InputImageType |
| |
| typedef Superclass::MaskType | MaskType |
| |
| typedef Superclass::OutputVectorContainerPointer | OutputVectorContainerPointer |
| |
| typedef Superclass::OutputVectorContainerType | OutputVectorContainerType |
| |
| typedef SmartPointer< Self > | Pointer |
| |
| typedef ImageRandomSamplerBase | Self |
| |
| typedef ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType > | Superclass |
| |
| typedef SmartPointer< const Self > | ConstPointer |
| |
| typedef Superclass::DataObjectPointer | DataObjectPointer |
| |
| typedef ImageSampleContainerType::Pointer | ImageSampleContainerPointer |
| |
| typedef VectorDataContainer< unsigned long, ImageSampleType > | ImageSampleContainerType |
| |
| typedef ImageSample< InputImageType > | ImageSampleType |
| |
| typedef ImageSampleType::RealType | ImageSampleValueType |
| |
| typedef Superclass::InputImageConstPointer | InputImageConstPointer |
| |
| typedef InputImageType::IndexType | InputImageIndexType |
| |
| typedef Superclass::InputImagePixelType | InputImagePixelType |
| |
| typedef Superclass::InputImagePointer | InputImagePointer |
| |
| typedef InputImageType::PointType | InputImagePointType |
| |
| typedef InputImagePointType::ValueType | InputImagePointValueType |
| |
| typedef Superclass::InputImageRegionType | InputImageRegionType |
| |
| typedef std::vector< InputImageRegionType > | InputImageRegionVectorType |
| |
| typedef InputImageType::SizeType | InputImageSizeType |
| |
| typedef Superclass::InputImageType | InputImageType |
| |
| typedef MaskType::ConstPointer | MaskConstPointer |
| |
| typedef MaskType::Pointer | MaskPointer |
| |
| typedef SpatialObject< Self::InputImageDimension > | MaskType |
| |
| typedef std::vector< MaskConstPointer > | MaskVectorType |
| |
| typedef Superclass::OutputVectorContainerPointer | OutputVectorContainerPointer |
| |
| typedef Superclass::OutputVectorContainerType | OutputVectorContainerType |
| |
| typedef SmartPointer< Self > | Pointer |
| |
| typedef ImageSamplerBase | Self |
| |
| typedef ImageToVectorContainerFilter< elx::ImageSamplerBase< TElastix >::InputImageType, VectorDataContainer< unsigned long, ImageSample< elx::ImageSamplerBase< TElastix >::InputImageType > > > | Superclass |
| |
| typedef SmartPointer< const Self > | ConstPointer |
| |
| typedef Superclass::DataObjectPointer | DataObjectPointer |
| |
| typedef InputImageType::ConstPointer | InputImageConstPointer |
| |
| typedef InputImageType::PixelType | InputImagePixelType |
| |
| typedef InputImageType::Pointer | InputImagePointer |
| |
| typedef InputImageType::RegionType | InputImageRegionType |
| |
| typedef elx::ImageSamplerBase< TElastix >::InputImageType | InputImageType |
| |
| typedef Superclass::OutputVectorContainerPointer | OutputVectorContainerPointer |
| |
| typedef Superclass::OutputVectorContainerType | OutputVectorContainerType |
| |
| typedef SmartPointer< Self > | Pointer |
| |
| typedef ImageToVectorContainerFilter | Self |
| |
| typedef VectorContainerSource< VectorDataContainer< unsigned long, ImageSample< elx::ImageSamplerBase< TElastix >::InputImageType > > > | Superclass |
| |
| typedef SmartPointer< const Self > | ConstPointer |
| |
| typedef Superclass::DataObjectPointer | DataObjectPointer |
| |
| typedef OutputVectorContainerType::Pointer | OutputVectorContainerPointer |
| |
| typedef VectorDataContainer< unsigned long, ImageSample< elx::ImageSamplerBase< TElastix >::InputImageType > > | OutputVectorContainerType |
| |
| typedef SmartPointer< Self > | Pointer |
| |
| typedef VectorContainerSource | Self |
| |
| typedef ProcessObject | Superclass |
| |
| typedef SmartPointer< const Self > | ConstPointer |
| |
| typedef Superclass::DataObjectPointer | DataObjectPointer |
| |
| typedef ImageSampleContainerType::Pointer | ImageSampleContainerPointer |
| |
| typedef VectorDataContainer< unsigned long, ImageSampleType > | ImageSampleContainerType |
| |
| typedef ImageSample< InputImageType > | ImageSampleType |
| |
| typedef ImageSampleType::RealType | ImageSampleValueType |
| |
| typedef Superclass::InputImageConstPointer | InputImageConstPointer |
| |
| typedef InputImageType::IndexType | InputImageIndexType |
| |
| typedef Superclass::InputImagePixelType | InputImagePixelType |
| |
| typedef Superclass::InputImagePointer | InputImagePointer |
| |
| typedef InputImageType::PointType | InputImagePointType |
| |
| typedef InputImagePointType::ValueType | InputImagePointValueType |
| |
| typedef Superclass::InputImageRegionType | InputImageRegionType |
| |
| typedef std::vector< InputImageRegionType > | InputImageRegionVectorType |
| |
| typedef InputImageType::SizeType | InputImageSizeType |
| |
| typedef Superclass::InputImageType | InputImageType |
| |
| typedef MaskType::ConstPointer | MaskConstPointer |
| |
| typedef MaskType::Pointer | MaskPointer |
| |
| typedef SpatialObject< Self::InputImageDimension > | MaskType |
| |
| typedef std::vector< MaskConstPointer > | MaskVectorType |
| |
| typedef Superclass::OutputVectorContainerPointer | OutputVectorContainerPointer |
| |
| typedef Superclass::OutputVectorContainerType | OutputVectorContainerType |
| |
| typedef SmartPointer< Self > | Pointer |
| |
| typedef ImageSamplerBase | Self |
| |
| typedef ImageToVectorContainerFilter< TElastix, VectorDataContainer< unsigned long, ImageSample< TElastix > > > | Superclass |
| |
| typedef SmartPointer< const Self > | ConstPointer |
| |
| typedef Superclass::DataObjectPointer | DataObjectPointer |
| |
| typedef InputImageType::ConstPointer | InputImageConstPointer |
| |
| typedef InputImageType::PixelType | InputImagePixelType |
| |
| typedef InputImageType::Pointer | InputImagePointer |
| |
| typedef InputImageType::RegionType | InputImageRegionType |
| |
| typedef TElastix | InputImageType |
| |
| typedef Superclass::OutputVectorContainerPointer | OutputVectorContainerPointer |
| |
| typedef Superclass::OutputVectorContainerType | OutputVectorContainerType |
| |
| typedef SmartPointer< Self > | Pointer |
| |
| typedef ImageToVectorContainerFilter | Self |
| |
| typedef VectorContainerSource< VectorDataContainer< unsigned long, ImageSample< TElastix > > > | Superclass |
| |
| typedef SmartPointer< const Self > | ConstPointer |
| |
| typedef Superclass::DataObjectPointer | DataObjectPointer |
| |
| typedef OutputVectorContainerType::Pointer | OutputVectorContainerPointer |
| |
| typedef VectorDataContainer< unsigned long, ImageSample< TElastix > > | OutputVectorContainerType |
| |
| typedef SmartPointer< Self > | Pointer |
| |
| typedef VectorContainerSource | Self |
| |
| typedef ProcessObject | Superclass |
| |
|
| virtual void | BeforeEachResolution (void) |
| |
| | elxClassNameMacro ("Random") |
| |
| virtual const char * | GetClassName () const |
| |
| | itkStaticConstMacro (InputImageDimension, unsigned int, Superclass1::InputImageDimension) |
| |
Public Member Functions inherited from itk::ImageRandomSampler< elx::ImageSamplerBase< TElastix >::InputImageType > |
| virtual const char * | GetClassName () const |
| |
| | itkStaticConstMacro (InputImageDimension, unsigned int, Superclass::InputImageDimension) |
| |
Public Member Functions inherited from itk::ImageRandomSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType > |
| | itkStaticConstMacro (InputImageDimension, unsigned int, Superclass::InputImageDimension) |
| |
| virtual void | SetNumberOfSamples (unsigned long _arg) |
| |
| virtual const InputImageRegionType & | GetCroppedInputImageRegion () |
| |
| virtual const InputImageRegionType & | GetInputImageRegion (unsigned int pos) const |
| |
| virtual const InputImageRegionType & | GetInputImageRegion (void) const |
| |
| virtual const MaskType * | GetMask (unsigned int pos) const |
| |
| virtual const MaskType * | GetMask (void) const |
| |
| virtual unsigned int | GetNumberOfInputImageRegions () const |
| |
| virtual unsigned int | GetNumberOfMasks () const |
| |
| virtual unsigned long | GetNumberOfSamples () const |
| |
| | itkStaticConstMacro (InputImageDimension, unsigned int, InputImageType::ImageDimension) |
| |
| virtual bool | SelectingNewSamplesOnUpdateSupported (void) const |
| |
| virtual bool | SelectNewSamplesOnUpdate (void) |
| |
| virtual void | SetInputImageRegion (const InputImageRegionType _arg) |
| |
| virtual void | SetInputImageRegion (const InputImageRegionType _arg, unsigned int pos) |
| |
| virtual void | SetMask (const MaskType *_arg) |
| |
| virtual void | SetMask (const MaskType *_arg, unsigned int pos) |
| |
| virtual void | SetNumberOfInputImageRegions (const unsigned int _arg) |
| |
| virtual void | SetNumberOfMasks (const unsigned int _arg) |
| |
| virtual void | SetUseMultiThread (bool _arg) |
| |
| const InputImageType * | GetInput (unsigned int idx) |
| |
| const InputImageType * | GetInput (void) |
| |
| OutputVectorContainerType * | GetOutput (void) |
| |
| DataObject::Pointer | MakeOutput (unsigned int idx) |
| |
| void | SetInput (const InputImageType *input) |
| |
| void | SetInput (unsigned int idx, const InputImageType *input) |
| |
| virtual unsigned int | SplitRequestedRegion (const ThreadIdType &threadId, const ThreadIdType &numberOfSplits, InputImageRegionType &splitRegion) |
| |
| virtual void | ThreadedGenerateData (const InputImageRegionType &inputRegionForThread, ThreadIdType threadId) |
| |
| OutputVectorContainerType * | GetOutput (unsigned int idx) |
| |
| OutputVectorContainerType * | GetOutput (void) |
| |
| virtual void | GraftNthOutput (unsigned int idx, DataObject *output) |
| |
| virtual void | GraftOutput (DataObject *output) |
| |
| virtual const char * | GetClassName () const |
| |
| virtual const InputImageRegionType & | GetCroppedInputImageRegion () |
| |
| virtual const InputImageRegionType & | GetInputImageRegion (unsigned int pos) const |
| |
| virtual const InputImageRegionType & | GetInputImageRegion (void) const |
| |
| virtual const MaskType * | GetMask (unsigned int pos) const |
| |
| virtual const MaskType * | GetMask (void) const |
| |
| virtual unsigned int | GetNumberOfInputImageRegions () const |
| |
| virtual unsigned int | GetNumberOfMasks () const |
| |
| virtual unsigned long | GetNumberOfSamples () const |
| |
| | itkStaticConstMacro (InputImageDimension, unsigned int, InputImageType::ImageDimension) |
| |
| virtual bool | SelectingNewSamplesOnUpdateSupported (void) const |
| |
| virtual bool | SelectNewSamplesOnUpdate (void) |
| |
| virtual void | SetInputImageRegion (const InputImageRegionType _arg) |
| |
| virtual void | SetInputImageRegion (const InputImageRegionType _arg, unsigned int pos) |
| |
| virtual void | SetMask (const MaskType *_arg) |
| |
| virtual void | SetMask (const MaskType *_arg, unsigned int pos) |
| |
| virtual void | SetNumberOfInputImageRegions (const unsigned int _arg) |
| |
| virtual void | SetNumberOfMasks (const unsigned int _arg) |
| |
| virtual void | SetUseMultiThread (bool _arg) |
| |
| virtual void | GenerateData (void) |
| |
| const InputImageType * | GetInput (unsigned int idx) |
| |
| const InputImageType * | GetInput (void) |
| |
| OutputVectorContainerType * | GetOutput (void) |
| |
| DataObject::Pointer | MakeOutput (unsigned int idx) |
| |
| void | SetInput (const InputImageType *input) |
| |
| void | SetInput (unsigned int idx, const InputImageType *input) |
| |
| virtual unsigned int | SplitRequestedRegion (const ThreadIdType &threadId, const ThreadIdType &numberOfSplits, InputImageRegionType &splitRegion) |
| |
| virtual void | ThreadedGenerateData (const InputImageRegionType &inputRegionForThread, ThreadIdType threadId) |
| |
| OutputVectorContainerType * | GetOutput (unsigned int idx) |
| |
| OutputVectorContainerType * | GetOutput (void) |
| |
| virtual void | GraftNthOutput (unsigned int idx, DataObject *output) |
| |
| virtual void | GraftOutput (DataObject *output) |
| |