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 
15 #ifndef __ImageRandomSamplerBase_h
16 #define __ImageRandomSamplerBase_h
17 
18 #include "itkImageSamplerBase.h"
19 
20 namespace itk
21 {
22 
32  template < class TInputImage >
34  public ImageSamplerBase< TInputImage >
35  {
36  public:
37 
41  typedef SmartPointer<Self> Pointer;
42  typedef SmartPointer<const Self> ConstPointer;
43 
45  itkNewMacro( Self );
46 
49 
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 
71  itkGetConstMacro( NumberOfSamples, unsigned long );
72 
73  protected:
74 
77  {
78  this->m_NumberOfSamples = 100;
79  };
80 
83 
85  void PrintSelf( std::ostream& os, Indent indent ) const
86  {
87  Superclass::PrintSelf( os, indent );
88  os << indent << "NumberOfSamples: " << this->m_NumberOfSamples << std::endl;
89  };
90 
91  unsigned long m_NumberOfSamples;
92 
93  private:
94 
96  ImageRandomSamplerBase( const Self& ); // purposely not implemented
98  void operator=( const Self& ); // purposely not implemented
99 
100  }; // end class ImageRandomSamplerBase
101 
102 
103 } // end namespace itk
104 
105 #endif // end #ifndef __ImageRandomSamplerBase_h
106 
Superclass::ImageSampleContainerType ImageSampleContainerType
Superclass::ImageSampleType ImageSampleType
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 &quot;vector&quot; container that conforms to the IndexedContainerInterface.
Superclass::InputImageType InputImageType
int max(int a, int b)
void PrintSelf(std::ostream &os, Indent indent) const
void operator=(const Self &)
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
SpatialObject< itkGetStaticConstMacro(InputImageDimension) > MaskType
Superclass::DataObjectPointer DataObjectPointer
Superclass::OutputVectorContainerType OutputVectorContainerType
SmartPointer< const Self > ConstPointer
This class is a base class for any image sampler that randomly picks samples.


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