go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxOpenCLFixedGenericPyramid.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 elxOpenCLOpenCLFixedGenericPyramid_h
19#define elxOpenCLOpenCLFixedGenericPyramid_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23#include "itkGPUImage.h"
24
25namespace elastix
26{
27
47template <class TElastix>
48class ITK_TEMPLATE_EXPORT OpenCLFixedGenericPyramid : public FixedGenericPyramid<TElastix>
49{
50public:
52
58 using Pointer = itk::SmartPointer<Self>;
59 using ConstPointer = itk::SmartPointer<const Self>;
60
62 itkNewMacro(Self);
63
66
71 elxClassNameMacro("OpenCLFixedGenericImagePyramid");
72
74 itkStaticConstMacro(ImageDimension, unsigned int, Superclass1::ImageDimension);
75
77 using typename Superclass1::InputImageType;
78 using typename Superclass1::OutputImageType;
79 using InputImagePixelType = typename Superclass1::InputImageType::PixelType;
80 using OutputImagePixelType = typename Superclass1::OutputImageType::PixelType;
81
83 using ObjectFactoryBasePointer = typename itk::ObjectFactoryBase::Pointer;
84
89
92
94 void
96
98 virtual void
100
101protected:
103 void
105
107 void
108 GenerateData() override;
109
113 ~OpenCLFixedGenericPyramid() override = default;
114
115private:
117
119 void
121
122 void
124
126 void
127 SwitchingToCPUAndReport(const bool configError);
128
130 void
132
138 std::vector<ObjectFactoryBasePointer> m_Factories;
139};
140
141} // end namespace elastix
142
143#ifndef ITK_MANUAL_INSTANTIATION
144# include "elxOpenCLFixedGenericPyramid.hxx"
145#endif
146
147#endif // end #ifndef elxOpenCLOpenCLFixedGenericPyramid_h
A pyramid based on the itk::GenericMultiResolutionPyramidImageFilter.
This class is the elastix base class for all FixedImagePyramids.
A pyramid based on the itk::GenericMultiResolutionPyramidImageFilter. The parameters used in this cla...
std::vector< ObjectFactoryBasePointer > m_Factories
itk::SmartPointer< const Self > ConstPointer
typename itk::ObjectFactoryBase::Pointer ObjectFactoryBasePointer
typename Superclass1::InputImageType::PixelType InputImagePixelType
itkStaticConstMacro(ImageDimension, unsigned int, Superclass1::ImageDimension)
void SwitchingToCPUAndReport(const bool configError)
typename GPUInputImageType::Pointer GPUInputImagePointer
ITK_DISALLOW_COPY_AND_MOVE(OpenCLFixedGenericPyramid)
typename FixedGenericPyramid< TElastix >::Superclass1 Superclass1
typename FixedGenericPyramid< TElastix >::Superclass2 Superclass2
elxClassNameMacro("OpenCLFixedGenericImagePyramid")
typename GPUPyramidType::Pointer GPUPyramidPointer
typename Superclass1::OutputImageType::PixelType OutputImagePixelType
~OpenCLFixedGenericPyramid() override=default
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:64
Framework for creating images in a multi-resolution pyramid.


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo