go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxGridSampler.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 elxGridSampler_h
19#define elxGridSampler_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
22#include "itkImageGridSampler.h"
23
24namespace elastix
25{
26
48template <class TElastix>
49class ITK_TEMPLATE_EXPORT GridSampler
50 : public itk::ImageGridSampler<typename elx::ImageSamplerBase<TElastix>::InputImageType>
51 , public elx::ImageSamplerBase<TElastix>
52{
53public:
55
60 using Pointer = itk::SmartPointer<Self>;
61 using ConstPointer = itk::SmartPointer<const Self>;
62
64 itkNewMacro(Self);
65
68
74
76 using typename Superclass1::DataObjectPointer;
79 using typename Superclass1::InputImageType;
80 using typename Superclass1::InputImagePointer;
84 using typename Superclass1::ImageSampleType;
86 using typename Superclass1::MaskType;
91
93 itkStaticConstMacro(InputImageDimension, unsigned int, Superclass1::InputImageDimension);
94
96 using typename Superclass2::ElastixType;
97 using typename Superclass2::RegistrationType;
98 using ITKBaseType = typename Superclass2::ITKBaseType;
99
103 void
105
106protected:
108 GridSampler() = default;
110 ~GridSampler() override = default;
111
112private:
114};
115
116} // end namespace elastix
117
118#ifndef ITK_MANUAL_INSTANTIATION
119# include "elxGridSampler.hxx"
120#endif
121
122#endif // end #ifndef elxGridSampler_h
An interpolator based on the itk::ImageGridSampler.
ITK_DISALLOW_COPY_AND_MOVE(GridSampler)
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass1::InputImageDimension)
~GridSampler() override=default
typename Superclass1::SampleGridSpacingType GridSpacingType
typename Superclass2::ITKBaseType ITKBaseType
void BeforeEachResolution() override
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
Samples image voxels on a regular grid.
typename Superclass::MaskType MaskType
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::OffsetType SampleGridSpacingType
typename InputImageType::PointType InputImagePointType
typename InputImageType::IndexType InputImageIndexType
typename InputImageType::RegionType InputImageRegionType
typename SampleGridSpacingType::OffsetValueType SampleGridSpacingValueType
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
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.
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo