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 #ifndef __ImageGridSampler_h
15 #define __ImageGridSampler_h
16 
17 #include "itkImageSamplerBase.h"
18 
19 namespace itk
20 {
21 
39 template< class TInputImage >
41  public ImageSamplerBase< TInputImage >
42 {
43 public:
44 
48  typedef SmartPointer< Self > Pointer;
49  typedef SmartPointer< const Self > ConstPointer;
50 
52  itkNewMacro( Self );
53 
56 
69  typedef typename Superclass::MaskType MaskType;
70 
72  itkStaticConstMacro( InputImageDimension, unsigned int,
73  Superclass::InputImageDimension );
74 
77  //typedef typename Superclass::InputImageSpacingType InputImageSpacingType;
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 
94  itkGetConstReferenceMacro( SampleGridSpacing, SampleGridSpacingType );
95 
112  virtual void SetNumberOfSamples( unsigned long nrofsamples );
113 
117  virtual bool SelectNewSamplesOnUpdate( void )
118  {
119  return false;
120  }
121 
122 
124  virtual bool SelectingNewSamplesOnUpdateSupported( void ) const
125  {
126  return false;
127  }
128 
129 
130 protected:
131 
134 
136  virtual ~ImageGridSampler() {}
137 
139  void PrintSelf( std::ostream & os, Indent indent ) const;
140 
142  virtual void GenerateData( void );
143 
146 
149 
150 private:
151 
153  ImageGridSampler( const Self & ); // purposely not implemented
155  void operator=( const Self & ); // purposely not implemented
156 
157 };
158 
159 } // end namespace itk
160 
161 #ifndef ITK_MANUAL_INSTANTIATION
162 #include "itkImageGridSampler.hxx"
163 #endif
164 
165 #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)
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
SmartPointer< Self > Pointer
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...
virtual bool SelectNewSamplesOnUpdate(void)
Superclass::InputImageType InputImageType
This class is a base class for any image sampler.
Define a front-end to the STL "vector" 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::ImageSampleContainerPointer ImageSampleContainerPointer
Superclass::OutputVectorContainerType OutputVectorContainerType
void SetSampleGridSpacing(const SampleGridSpacingType &arg)
SmartPointer< const Self > ConstPointer
ImageSamplerBase< TInputImage > Superclass
InputImageType::SizeType InputImageSizeType
Superclass::InputImageRegionType InputImageRegionType
InputImageIndexType SampleGridIndexType
Samples image voxels on a regular grid.
unsigned long m_RequestedNumberOfSamples


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