go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageRandomSamplerSparseMask.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 
15 #ifndef __ImageRandomSamplerSparseMask_h
16 #define __ImageRandomSamplerSparseMask_h
17 
19 #include "itkMersenneTwisterRandomVariateGenerator.h"
20 #include "itkImageFullSampler.h"
21 
22 namespace itk
23 {
24 
35  template < class TInputImage >
37  public ImageRandomSamplerBase< TInputImage >
38  {
39  public:
40 
44  typedef SmartPointer<Self> Pointer;
45  typedef SmartPointer<const Self> ConstPointer;
46 
48  itkNewMacro( Self );
49 
52 
64  typedef typename Superclass::MaskType MaskType;
65 
67  itkStaticConstMacro( InputImageDimension, unsigned int,
68  Superclass::InputImageDimension );
69 
71  typedef typename InputImageType::IndexType InputImageIndexType;
72  typedef typename InputImageType::PointType InputImagePointType;
73 
75  typedef itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType;
76 
77  protected:
78 
80 
85 
87  void PrintSelf( std::ostream& os, Indent indent ) const;
88 
90  virtual void GenerateData( void );
91 
92  typename RandomGeneratorType::Pointer m_RandomGenerator;
94 
95  private:
96 
98  ImageRandomSamplerSparseMask( const Self& ); // purposely not implemented
100  void operator=( const Self& ); // purposely not implemented
101 
102 
103  }; // end class ImageRandomSamplerSparseMask
104 
105 
106 } // end namespace itk
107 
108 #ifndef ITK_MANUAL_INSTANTIATION
109 #include "itkImageRandomSamplerSparseMask.txx"
110 #endif
111 
112 #endif // end #ifndef __ImageRandomSamplerSparseMask_h
113 
SmartPointer< Self > Pointer
InternalFullSamplerType::Pointer m_InternalFullSampler
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::ImageSampleContainerType ImageSampleContainerType
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType
Superclass::OutputVectorContainerType OutputVectorContainerType
A class that defines an image sample, which is the coordinates of a point and its value...
Superclass::InputImagePointer InputImagePointer
Samples all voxels in the InputImageRegion.
Superclass::InputImagePixelType InputImagePixelType
Samples randomly some voxels of an image.
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
Superclass::InputImageConstPointer InputImageConstPointer
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
itk::ImageFullSampler< InputImageType > InternalFullSamplerType
SpatialObject< itkGetStaticConstMacro(InputImageDimension) > MaskType
This class is a base class for any image sampler that randomly picks samples.
Superclass::InputImageRegionType InputImageRegionType
ImageRandomSamplerBase< TInputImage > Superclass
Superclass::DataObjectPointer DataObjectPointer


Generated on 05-01-2014 for elastix by doxygen 1.8.5 elastix logo