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
23namespace itk
24{
25
43template< class TInputImage >
45 public ImageSamplerBase< TInputImage >
46{
47public:
48
53 typedef SmartPointer< const Self > ConstPointer;
54
56 itkNewMacro( Self );
57
60
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 void SetNumberOfSamples( unsigned long nrofsamples ) override;
117
121 bool SelectNewSamplesOnUpdate( void ) override
122 {
123 return false;
124 }
125
126
128 bool SelectingNewSamplesOnUpdateSupported( void ) const override
129 {
130 return false;
131 }
132
133
134protected:
135
138
140 ~ImageGridSampler() override {}
141
143 void PrintSelf( std::ostream & os, Indent indent ) const override;
144
146 void GenerateData( void ) override;
147
150
153
154private:
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
Samples image voxels on a regular grid.
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
void operator=(const Self &)
SmartPointer< const Self > ConstPointer
InputImageIndexType SampleGridIndexType
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
bool SelectNewSamplesOnUpdate(void) override
void GenerateData(void) override
InputImageType::SizeType InputImageSizeType
Superclass::ImageSampleContainerType ImageSampleContainerType
InputImageType::SizeType SampleGridSizeType
Superclass::MaskType MaskType
Superclass::InputImageRegionType InputImageRegionType
SampleGridSpacingType m_SampleGridSpacing
ImageSamplerBase< TInputImage > Superclass
SampleGridSpacingType::OffsetValueType SampleGridSpacingValueType
Superclass::ImageSampleType ImageSampleType
Superclass::OutputVectorContainerType OutputVectorContainerType
SmartPointer< Self > Pointer
bool SelectingNewSamplesOnUpdateSupported(void) const override
void SetSampleGridSpacing(const SampleGridSpacingType &arg)
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::InputImagePixelType InputImagePixelType
unsigned long m_RequestedNumberOfSamples
InputImageType::OffsetType SampleGridSpacingType
ImageGridSampler(const Self &)
Superclass::InputImagePointer InputImagePointer
Superclass::InputImageIndexType InputImageIndexType
Superclass::DataObjectPointer DataObjectPointer
Superclass::InputImageType InputImageType
Superclass::InputImageConstPointer InputImageConstPointer
Superclass::InputImagePointType InputImagePointType
void SetNumberOfSamples(unsigned long nrofsamples) override
A class that defines an image sample, which is the coordinates of a point and its value.
This class is a base class for any image sampler.
InputImageType::IndexType InputImageIndexType
Superclass::InputImagePixelType InputImagePixelType
SpatialObject< Self::InputImageDimension > MaskType
Superclass::DataObjectPointer DataObjectPointer
InputImageType::PointType InputImagePointType
Superclass::InputImageRegionType InputImageRegionType
Superclass::InputImageType InputImageType
Superclass::InputImagePointer InputImagePointer
Superclass::InputImageConstPointer InputImageConstPointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo