go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageRandomSamplerBase.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 #ifndef __ImageRandomSamplerBase_h
15 #define __ImageRandomSamplerBase_h
16 
17 #include "itkImageSamplerBase.h"
18 
19 namespace itk
20 {
21 
31 template< class TInputImage >
33  public ImageSamplerBase< TInputImage >
34 {
35 public:
36 
40  typedef SmartPointer< Self > Pointer;
41  typedef SmartPointer< const Self > ConstPointer;
42 
44  itkNewMacro( Self );
45 
48 
61  typedef typename Superclass::MaskType MaskType;
62 
64  itkStaticConstMacro( InputImageDimension, unsigned int,
65  Superclass::InputImageDimension );
66 
68  itkSetClampMacro( NumberOfSamples, unsigned long, 1, NumericTraits< unsigned long >::max() );
69 
70 protected:
71 
74 
77 
79  virtual void BeforeThreadedGenerateData( void );
80 
82  void PrintSelf( std::ostream & os, Indent indent ) const;
83 
85  std::vector< double > m_RandomNumberList;
86 
87 private:
88 
90  ImageRandomSamplerBase( const Self & ); // purposely not implemented
92  void operator=( const Self & ); // purposely not implemented
93 
94 };
95 
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkImageRandomSamplerBase.hxx"
100 #endif
101 
102 #endif // end #ifndef __ImageRandomSamplerBase_h
Superclass::ImageSampleContainerType ImageSampleContainerType
Superclass::ImageSampleType ImageSampleType
virtual void BeforeThreadedGenerateData(void)
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
Superclass::InputImagePixelType InputImagePixelType
Superclass::InputImagePointer InputImagePointer
A class that defines an image sample, which is the coordinates of a point and its value...
Superclass::InputImageConstPointer InputImageConstPointer
ImageSamplerBase< TInputImage > Superclass
Superclass::InputImageRegionType InputImageRegionType
This class is a base class for any image sampler.
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Superclass::InputImageType InputImageType
int max(int a, int b)
SmartPointer< const Self > ConstPointer
void operator=(const Self &)
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Superclass::DataObjectPointer DataObjectPointer
Superclass::OutputVectorContainerType OutputVectorContainerType
This class is a base class for any image sampler that randomly picks samples.
std::vector< double > m_RandomNumberList


Generated on 27-04-2014 for elastix by doxygen 1.8.6 elastix logo