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 
40 template < class TInputImage >
42  : public ImageSamplerBase< TInputImage >
43 {
44 public:
45 
49  typedef SmartPointer<Self> Pointer;
50  typedef SmartPointer<const Self> ConstPointer;
51 
53  itkNewMacro( Self );
54 
57 
69  typedef typename Superclass::MaskType MaskType;
70 
72  itkStaticConstMacro( InputImageDimension, unsigned int,
73  Superclass::InputImageDimension );
74 
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  void SetSampleGridSpacing( const SampleGridSpacingType & arg );
93  itkGetConstReferenceMacro( SampleGridSpacing, SampleGridSpacingType );
94 
111  virtual void SetNumberOfSamples( unsigned long nrofsamples );
112 
116  virtual bool SelectNewSamplesOnUpdate( void )
117  {
118  return false;
119  };
120 
122  virtual bool SelectingNewSamplesOnUpdateSupported( void ) const
123  {
124  return false;
125  }
126 
127 protected:
128 
131 
133  virtual ~ImageGridSampler() {};
134 
136  void PrintSelf( std::ostream & os, Indent indent ) const;
137 
139  virtual void GenerateData( void );
140 
143 
146 
147 private:
148 
150  ImageGridSampler( const Self& ); // purposely not implemented
152  void operator=( const Self& ); // purposely not implemented
153 
154 }; // end class ImageGridSampler
155 
156 
157 } // end namespace itk
158 
159 #ifndef ITK_MANUAL_INSTANTIATION
160 #include "itkImageGridSampler.txx"
161 #endif
162 
163 #endif // end #ifndef __ImageGridSampler_h
Superclass::InputImagePointType InputImagePointType
Superclass::InputImagePointer InputImagePointer
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::InputImagePixelType InputImagePixelType
virtual void SetNumberOfSamples(unsigned long nrofsamples)
Superclass::InputImageSpacingType InputImageSpacingType
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
virtual void GenerateData(void)
Superclass::InputImageIndexType InputImageIndexType
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)
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 &)
SampleGridSpacingType::OffsetValueType SampleGridSpacingValueType
Superclass::OutputVectorContainerType OutputVectorContainerType
void SetSampleGridSpacing(const SampleGridSpacingType &arg)
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 05-01-2014 for elastix by doxygen 1.8.5 elastix logo