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  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __ImageGridSampler_h
19 #define __ImageGridSampler_h
20 
21 #include "itkImageSamplerBase.h"
22 
23 namespace itk
24 {
25 
43 template< class TInputImage >
45  public ImageSamplerBase< TInputImage >
46 {
47 public:
48 
53  typedef SmartPointer< const Self > ConstPointer;
54 
56  itkNewMacro( Self );
57 
60 
73  typedef typename Superclass::MaskType MaskType;
74 
76  itkStaticConstMacro( InputImageDimension, unsigned int,
77  Superclass::InputImageDimension );
78 
81  //typedef typename Superclass::InputImageSpacingType InputImageSpacingType;
83 
85  typedef typename InputImageType::OffsetType SampleGridSpacingType;
86  typedef typename SampleGridSpacingType::OffsetValueType SampleGridSpacingValueType;
87  typedef typename InputImageType::SizeType SampleGridSizeType;
88  typedef InputImageIndexType SampleGridIndexType;
89  typedef typename InputImageType::SizeType InputImageSizeType;
90 
96  void SetSampleGridSpacing( const SampleGridSpacingType & arg );
97 
98  itkGetConstReferenceMacro( SampleGridSpacing, SampleGridSpacingType );
99 
116  virtual void SetNumberOfSamples( unsigned long nrofsamples );
117 
121  virtual bool SelectNewSamplesOnUpdate( void )
122  {
123  return false;
124  }
125 
126 
128  virtual bool SelectingNewSamplesOnUpdateSupported( void ) const
129  {
130  return false;
131  }
132 
133 
134 protected:
135 
138 
140  virtual ~ImageGridSampler() {}
141 
143  void PrintSelf( std::ostream & os, Indent indent ) const;
144 
146  virtual void GenerateData( void );
147 
149  SampleGridSpacingType m_SampleGridSpacing;
150 
153 
154 private:
155 
157  ImageGridSampler( const Self & ); // purposely not implemented
159  void operator=( const Self & ); // purposely not implemented
160 
161 };
162 
163 } // end namespace itk
164 
165 #ifndef ITK_MANUAL_INSTANTIATION
166 #include "itkImageGridSampler.hxx"
167 #endif
168 
169 #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 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo