go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageGridSampler.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 __ImageGridSampler_h
16 #define __ImageGridSampler_h
17 
18 #include "itkImageSamplerBase.h"
19 
20 namespace itk
21 {
22 
41  template < class TInputImage >
43  public ImageSamplerBase< TInputImage >
44  {
45  public:
46 
50  typedef SmartPointer<Self> Pointer;
51  typedef SmartPointer<const Self> ConstPointer;
52 
54  itkNewMacro( Self );
55 
58 
70  typedef typename Superclass::MaskType MaskType;
71 
73  itkStaticConstMacro( InputImageDimension, unsigned int,
74  Superclass::InputImageDimension );
75 
77  typedef typename InputImageType::IndexType InputImageIndexType;
78  typedef typename InputImageType::PointType InputImagePointType;
79 
81  typedef typename InputImageType::OffsetType SampleGridSpacingType;
82  typedef typename SampleGridSpacingType::OffsetValueType SampleGridSpacingValueType;
83  typedef typename InputImageType::SizeType SampleGridSizeType;
85  typedef typename InputImageType::SizeType InputImageSizeType;
86 
92  {
93  this->SetNumberOfSamples(0);
94  if ( this->m_SampleGridSpacing != arg )
95  {
96  this->m_SampleGridSpacing = arg;
97  this->Modified();
98  }
99  }
100  itkGetConstMacro(SampleGridSpacing, SampleGridSpacingType);
101 
119  virtual void SetNumberOfSamples( unsigned long nrofsamples );
120 
123  virtual bool SelectNewSamplesOnUpdate(void)
124  {
125  return false;
126  };
127 
129  virtual bool SelectingNewSamplesOnUpdateSupported( void ) const
130  {
131  return false;
132  }
133 
134  protected:
135 
138  {
139  this->m_RequestedNumberOfSamples = 0;
140  }
141 
143  virtual ~ImageGridSampler() {};
144 
146  void PrintSelf( std::ostream& os, Indent indent ) const;
147 
149  virtual void GenerateData( void );
150 
153 
156 
157  private:
158 
160  ImageGridSampler( const Self& ); // purposely not implemented
162  void operator=( const Self& ); // purposely not implemented
163 
164  }; // end class ImageGridSampler
165 
166 
167 } // end namespace itk
168 
169 #ifndef ITK_MANUAL_INSTANTIATION
170 #include "itkImageGridSampler.txx"
171 #endif
172 
173 #endif // end #ifndef __ImageGridSampler_h
174 
Superclass::InputImagePointer InputImagePointer
void PrintSelf(std::ostream &os, Indent indent) const
InputImageType::PointType InputImagePointType
Superclass::InputImagePixelType InputImagePixelType
virtual void SetNumberOfSamples(unsigned long nrofsamples)
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
virtual void GenerateData(void)
InputImageType::OffsetType SampleGridSpacingType
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
A class that defines an image sample, which is the coordinates of a point and its value...
SmartPointer< Self > Pointer
virtual bool SelectNewSamplesOnUpdate(void)
void SetSampleGridSpacing(SampleGridSpacingType arg)
Superclass::InputImageType InputImageType
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.
InputImageType::SizeType SampleGridSizeType
virtual bool SelectingNewSamplesOnUpdateSupported(void) const
Superclass::MaskType MaskType
Superclass::DataObjectPointer DataObjectPointer
Superclass::ImageSampleContainerType ImageSampleContainerType
Superclass::ImageSampleType ImageSampleType
SampleGridSpacingType m_SampleGridSpacing
Superclass::InputImageConstPointer InputImageConstPointer
void operator=(const Self &)
InputImageType::IndexType InputImageIndexType
SampleGridSpacingType::OffsetValueType SampleGridSpacingValueType
Superclass::OutputVectorContainerType OutputVectorContainerType
ImageSamplerBase< TInputImage > Superclass
SpatialObject< itkGetStaticConstMacro(InputImageDimension) > MaskType
InputImageType::SizeType InputImageSizeType
SmartPointer< const Self > ConstPointer
Superclass::InputImageRegionType InputImageRegionType
InputImageIndexType SampleGridIndexType
Samples image voxels on a regular grid.
unsigned long m_RequestedNumberOfSamples


Generated on 06-12-2013 for elastix by doxygen 1.8.5 elastix logo