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;
89  typedef typename InputImageType::SizeType InputImageSizeType;
90 
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 
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
itk::ImageGridSampler::InputImageType
Superclass::InputImageType InputImageType
Definition: itkImageGridSampler.h:65
itk::ImageGridSampler::InputImageConstPointer
Superclass::InputImageConstPointer InputImageConstPointer
Definition: itkImageGridSampler.h:67
itk::ImageGridSampler::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImagePointType
InputImageType::PointType InputImagePointType
Definition: itkImageSamplerBase.h:82
itk::ImageGridSampler::Self
ImageGridSampler Self
Definition: itkImageGridSampler.h:50
itk::ImageGridSampler::DataObjectPointer
Superclass::DataObjectPointer DataObjectPointer
Definition: itkImageGridSampler.h:59
itk::ImageGridSampler::OutputVectorContainerPointer
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
Definition: itkImageGridSampler.h:64
itk::ImageGridSampler::ImageGridSampler
ImageGridSampler(const Self &)
itk::ImageGridSampler::SampleGridSpacingValueType
SampleGridSpacingType::OffsetValueType SampleGridSpacingValueType
Definition: itkImageGridSampler.h:86
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::DataObjectPointer
Superclass::DataObjectPointer DataObjectPointer
Definition: itkImageSamplerBase.h:60
itk::ImageGridSampler::m_SampleGridSpacing
SampleGridSpacingType m_SampleGridSpacing
Definition: itkImageGridSampler.h:149
SmartPointer< Self >
itk::ImageGridSampler::SetSampleGridSpacing
void SetSampleGridSpacing(const SampleGridSpacingType &arg)
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImagePointer
Superclass::InputImagePointer InputImagePointer
Definition: itkImageSamplerBase.h:67
itk::ImageGridSampler::MaskType
Superclass::MaskType MaskType
Definition: itkImageGridSampler.h:73
itk::ImageGridSampler::operator=
void operator=(const Self &)
itk::ImageGridSampler::InputImageRegionType
Superclass::InputImageRegionType InputImageRegionType
Definition: itkImageGridSampler.h:68
itk::ImageGridSampler::ImageGridSampler
ImageGridSampler()
itk::ImageGridSampler::InputImagePointer
Superclass::InputImagePointer InputImagePointer
Definition: itkImageGridSampler.h:66
itk::ImageGridSampler::SampleGridIndexType
InputImageIndexType SampleGridIndexType
Definition: itkImageGridSampler.h:88
itkImageSamplerBase.h
itk::ImageSample
A class that defines an image sample, which is the coordinates of a point and its value.
Definition: itkImageSample.h:35
itk::ImageGridSampler::GenerateData
virtual void GenerateData(void)
itk::ImageGridSampler::InputImagePointType
Superclass::InputImagePointType InputImagePointType
Definition: itkImageGridSampler.h:82
itk::ImageGridSampler::ImageSampleContainerPointer
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Definition: itkImageGridSampler.h:72
itk::ImageGridSampler::OutputVectorContainerType
Superclass::OutputVectorContainerType OutputVectorContainerType
Definition: itkImageGridSampler.h:63
itk::ImageGridSampler::Superclass
ImageSamplerBase< TInputImage > Superclass
Definition: itkImageGridSampler.h:51
itk::ImageGridSampler::SelectingNewSamplesOnUpdateSupported
virtual bool SelectingNewSamplesOnUpdateSupported(void) const
Definition: itkImageGridSampler.h:128
itk::ImageGridSampler::InputImagePixelType
Superclass::InputImagePixelType InputImagePixelType
Definition: itkImageGridSampler.h:69
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageRegionType
Superclass::InputImageRegionType InputImageRegionType
Definition: itkImageSamplerBase.h:69
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageConstPointer
Superclass::InputImageConstPointer InputImageConstPointer
Definition: itkImageSamplerBase.h:68
itk::ImageGridSampler::InputImageSizeType
InputImageType::SizeType InputImageSizeType
Definition: itkImageGridSampler.h:89
itk::ImageGridSampler::m_RequestedNumberOfSamples
unsigned long m_RequestedNumberOfSamples
Definition: itkImageGridSampler.h:152
itk::ImageGridSampler::SetNumberOfSamples
virtual void SetNumberOfSamples(unsigned long nrofsamples)
itk
Definition: itkAdvancedImageToImageMetric.h:40
itk::ImageGridSampler::SampleGridSizeType
InputImageType::SizeType SampleGridSizeType
Definition: itkImageGridSampler.h:87
itk::ImageGridSampler::SampleGridSpacingType
InputImageType::OffsetType SampleGridSpacingType
Definition: itkImageGridSampler.h:85
itk::ImageGridSampler::InputImageIndexType
Superclass::InputImageIndexType InputImageIndexType
Definition: itkImageGridSampler.h:80
itk::ImageGridSampler::ImageSampleType
Superclass::ImageSampleType ImageSampleType
Definition: itkImageGridSampler.h:70
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageIndexType
InputImageType::IndexType InputImageIndexType
Definition: itkImageSamplerBase.h:81
itk::ImageSamplerBase
This class is a base class for any image sampler.
Definition: itkImageSamplerBase.h:45
itk::ImageGridSampler::ImageSampleContainerType
Superclass::ImageSampleContainerType ImageSampleContainerType
Definition: itkImageGridSampler.h:71
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImagePixelType
Superclass::InputImagePixelType InputImagePixelType
Definition: itkImageSamplerBase.h:70
itk::VectorDataContainer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Definition: itkVectorDataContainer.h:79
itk::ImageGridSampler
Samples image voxels on a regular grid.
Definition: itkImageGridSampler.h:46
itk::ImageGridSampler::Pointer
SmartPointer< Self > Pointer
Definition: itkImageGridSampler.h:52
itk::ImageGridSampler::~ImageGridSampler
virtual ~ImageGridSampler()
Definition: itkImageGridSampler.h:140
itk::ImageGridSampler::SelectNewSamplesOnUpdate
virtual bool SelectNewSamplesOnUpdate(void)
Definition: itkImageGridSampler.h:121
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageType
Superclass::InputImageType InputImageType
Definition: itkImageSamplerBase.h:66
itk::ImageGridSampler::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkImageGridSampler.h:53
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::MaskType
SpatialObject< Self::InputImageDimension > MaskType
Definition: itkImageSamplerBase.h:85
itk::ImageGridSampler::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo