go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageRandomSampler.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 __ImageRandomSampler_h
15 #define __ImageRandomSampler_h
16 
18 
19 namespace itk
20 {
34 template< class TInputImage >
36  public ImageRandomSamplerBase< TInputImage >
37 {
38 public:
39 
43  typedef SmartPointer< Self > Pointer;
44  typedef SmartPointer< const Self > ConstPointer;
45 
47  itkNewMacro( Self );
48 
51 
65  typedef typename Superclass::MaskType MaskType;
67 
69  itkStaticConstMacro( InputImageDimension, unsigned int,
70  Superclass::InputImageDimension );
71 
73  typedef typename InputImageType::IndexType InputImageIndexType;
74  typedef typename InputImageType::PointType InputImagePointType;
75 
76 protected:
77 
81  virtual ~ImageRandomSampler() {}
82 
84  virtual void GenerateData( void );
85 
86  virtual void ThreadedGenerateData(
87  const InputImageRegionType & inputRegionForThread,
88  ThreadIdType threadId );
89 
90 private:
91 
93  ImageRandomSampler( const Self & ); // purposely not implemented
95  void operator=( const Self & ); // purposely not implemented
96 
97 };
98 
99 } // end namespace itk
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 #include "itkImageRandomSampler.hxx"
103 #endif
104 
105 #endif // end #ifndef __ImageRandomSampler_h
Superclass::ImageSampleValueType ImageSampleValueType
Superclass::ImageSampleContainerType ImageSampleContainerType
Samples randomly some voxels of an image.
ImageRandomSamplerBase< TInputImage > Superclass
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
Superclass::OutputVectorContainerType OutputVectorContainerType
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Superclass::MaskType MaskType
A class that defines an image sample, which is the coordinates of a point and its value...
InputImageType::PointType InputImagePointType
Superclass::InputImageConstPointer InputImageConstPointer
virtual void ThreadedGenerateData(const InputImageRegionType &inputRegionForThread, ThreadIdType threadId)
Superclass::DataObjectPointer DataObjectPointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
virtual void GenerateData(void)
SmartPointer< Self > Pointer
void operator=(const Self &)
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
Superclass::ImageSampleType ImageSampleType
Superclass::InputImageRegionType InputImageRegionType
Superclass::InputImageSizeType InputImageSizeType
Superclass::InputImagePixelType InputImagePixelType
This class is a base class for any image sampler that randomly picks samples.
SmartPointer< const Self > ConstPointer
Superclass::InputImagePointer InputImagePointer
InputImageType::IndexType InputImageIndexType
Superclass::InputImageType InputImageType


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo