go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxOpenCLMovingGenericPyramid.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 __elxOpenCLMovingGenericPyramid_h
19 #define __elxOpenCLMovingGenericPyramid_h
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
23 #include "itkGPUImage.h"
24 
25 namespace elastix
26 {
27 
47 template< class TElastix >
49  public MovingGenericPyramid< TElastix >
50 {
51 public:
52 
58  typedef itk::SmartPointer< Self > Pointer;
59  typedef itk::SmartPointer< const Self > ConstPointer;
60 
62  itkNewMacro( Self );
63 
66 
71  elxClassNameMacro( "OpenCLMovingGenericImagePyramid" );
72 
74  itkStaticConstMacro( ImageDimension, unsigned int, Superclass1::ImageDimension );
75 
81 
83  typedef typename itk::ObjectFactoryBase::Pointer ObjectFactoryBasePointer;
84 
91 
96 
98  virtual void BeforeRegistration( void );
99 
101  virtual void ReadFromFile( void );
102 
103 protected:
104 
106  void BeforeGenerateData( void );
107 
109  virtual void GenerateData( void );
110 
115 
116 private:
117 
119  OpenCLMovingGenericPyramid( const Self & ); // purposely not implemented
121  void operator=( const Self & ); // purposely not implemented
122 
124  void RegisterFactories( void );
125 
126  void UnregisterFactories( void );
127 
129  void SwitchingToCPUAndReport( const bool configError );
130 
131  GPUPyramidPointer m_GPUPyramid;
136  std::vector< ObjectFactoryBasePointer > m_Factories;
137 };
138 
139 } // end namespace elastix
140 
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "elxOpenCLMovingGenericPyramid.hxx"
143 #endif
144 
145 #endif // end #ifndef __elxOpenCLMovingGenericPyramid_h
itkStaticConstMacro(ImageDimension, unsigned int, Superclass1::ImageDimension)
Superclass1::InputImageType::PixelType InputImagePixelType
itk::GPUImage< InputImagePixelType, InputImageType::ImageDimension > GPUInputImageType
std::vector< ObjectFactoryBasePointer > m_Factories
A pyramid based on the itk::GenericMultiResolutionPyramidImageFilter.
virtual void BeforeRegistration(void)
Framework for creating images in a multi-resolution pyramid.
MovingGenericPyramid< TElastix >::Superclass2 Superclass2
MovingGenericPyramid< TElastix >::Superclass1 Superclass1
void SwitchingToCPUAndReport(const bool configError)
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:63
itk::GPUImage< OutputImagePixelType, OutputImageType::ImageDimension > GPUOutputImageType
itk::GenericMultiResolutionPyramidImageFilter< GPUInputImageType, GPUOutputImageType, float > GPUPyramidType
A pyramid based on the itk::GenericMultiResolutionPyramidImageFilter. The parameters used in this cla...
itk::SmartPointer< const Self > ConstPointer
This class is the elastix base class for all MovingImagePyramids.
elxClassNameMacro("OpenCLMovingGenericImagePyramid")
MovingGenericPyramid< TElastix > Superclass
itk::ObjectFactoryBase::Pointer ObjectFactoryBasePointer
Superclass1::OutputImageType::PixelType OutputImagePixelType


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo