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 
132  void ReportToLog( void );
133 
139  std::vector< ObjectFactoryBasePointer > m_Factories;
140 };
141 
142 } // end namespace elastix
143 
144 #ifndef ITK_MANUAL_INSTANTIATION
145 #include "elxOpenCLMovingGenericPyramid.hxx"
146 #endif
147 
148 #endif // end #ifndef __elxOpenCLMovingGenericPyramid_h
itk::GenericMultiResolutionPyramidImageFilter
Framework for creating images in a multi-resolution pyramid.
Definition: itkGenericMultiResolutionPyramidImageFilter.h:119
elastix::OpenCLMovingGenericPyramid::m_ContextCreated
bool m_ContextCreated
Definition: elxOpenCLMovingGenericPyramid.h:137
elastix::OpenCLMovingGenericPyramid::GPUInputImageType
itk::GPUImage< InputImagePixelType, InputImageType::ImageDimension > GPUInputImageType
Definition: elxOpenCLMovingGenericPyramid.h:87
elastix::OpenCLMovingGenericPyramid::Self
OpenCLMovingGenericPyramid Self
Definition: elxOpenCLMovingGenericPyramid.h:54
elastix::OpenCLMovingGenericPyramid::SwitchingToCPUAndReport
void SwitchingToCPUAndReport(const bool configError)
elastix::OpenCLMovingGenericPyramid::Pointer
itk::SmartPointer< Self > Pointer
Definition: elxOpenCLMovingGenericPyramid.h:58
elastix::OpenCLMovingGenericPyramid::operator=
void operator=(const Self &)
elastix::OpenCLMovingGenericPyramid::itkStaticConstMacro
itkStaticConstMacro(ImageDimension, unsigned int, Superclass1::ImageDimension)
itk::GPUImage
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:64
SmartPointer< Self >
elastix::OpenCLMovingGenericPyramid
A pyramid based on the itk::GenericMultiResolutionPyramidImageFilter. The parameters used in this cla...
Definition: elxOpenCLMovingGenericPyramid.h:50
elastix::OpenCLMovingGenericPyramid::UnregisterFactories
void UnregisterFactories(void)
elastix::OpenCLMovingGenericPyramid::Superclass
MovingGenericPyramid< TElastix > Superclass
Definition: elxOpenCLMovingGenericPyramid.h:55
elastix::OpenCLMovingGenericPyramid::OpenCLMovingGenericPyramid
OpenCLMovingGenericPyramid(const Self &)
elastix::OpenCLMovingGenericPyramid::Superclass2
MovingGenericPyramid< TElastix >::Superclass2 Superclass2
Definition: elxOpenCLMovingGenericPyramid.h:57
elastix::OpenCLMovingGenericPyramid::OpenCLMovingGenericPyramid
OpenCLMovingGenericPyramid()
elastix::OpenCLMovingGenericPyramid::BeforeGenerateData
void BeforeGenerateData(void)
elastix::OpenCLMovingGenericPyramid::Superclass1
MovingGenericPyramid< TElastix >::Superclass1 Superclass1
Definition: elxOpenCLMovingGenericPyramid.h:56
elastix::OpenCLMovingGenericPyramid::InputImagePixelType
Superclass1::InputImageType::PixelType InputImagePixelType
Definition: elxOpenCLMovingGenericPyramid.h:79
elastix::OpenCLMovingGenericPyramid::GPUPyramidType
itk::GenericMultiResolutionPyramidImageFilter< GPUInputImageType, GPUOutputImageType, float > GPUPyramidType
Definition: elxOpenCLMovingGenericPyramid.h:94
elastix::OpenCLMovingGenericPyramid::InputImageType
Superclass1::InputImageType InputImageType
Definition: elxOpenCLMovingGenericPyramid.h:77
elastix::OpenCLMovingGenericPyramid::GenerateData
virtual void GenerateData(void)
elastix::MovingGenericPyramid
A pyramid based on the itk::GenericMultiResolutionPyramidImageFilter.
Definition: elxMovingGenericPyramid.h:78
itkGPUImage.h
elastix::OpenCLMovingGenericPyramid::m_GPUPyramidCreated
bool m_GPUPyramidCreated
Definition: elxOpenCLMovingGenericPyramid.h:136
itk::GenericMultiResolutionPyramidImageFilter::PixelType
InputImageType::PixelType PixelType
Definition: itkGenericMultiResolutionPyramidImageFilter.h:151
elastix::MovingImagePyramidBase
This class is the elastix base class for all MovingImagePyramids.
Definition: elxMovingImagePyramidBase.h:61
elastix::OpenCLMovingGenericPyramid::m_UseOpenCL
bool m_UseOpenCL
Definition: elxOpenCLMovingGenericPyramid.h:138
elastix::OpenCLMovingGenericPyramid::GPUPyramidPointer
GPUPyramidType::Pointer GPUPyramidPointer
Definition: elxOpenCLMovingGenericPyramid.h:95
elastix::OpenCLMovingGenericPyramid::ReportToLog
void ReportToLog(void)
elxMovingGenericPyramid.h
elastix::OpenCLMovingGenericPyramid::elxClassNameMacro
elxClassNameMacro("OpenCLMovingGenericImagePyramid")
elxIncludes.h
elastix::OpenCLMovingGenericPyramid::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: elxOpenCLMovingGenericPyramid.h:59
itk::GenericMultiResolutionPyramidImageFilter::InputImageType
Superclass::InputImageType InputImageType
Definition: itkGenericMultiResolutionPyramidImageFilter.h:145
elastix::OpenCLMovingGenericPyramid::m_Factories
std::vector< ObjectFactoryBasePointer > m_Factories
Definition: elxOpenCLMovingGenericPyramid.h:139
itk::GenericMultiResolutionPyramidImageFilter::OutputImageType
Superclass::OutputImageType OutputImageType
Definition: itkGenericMultiResolutionPyramidImageFilter.h:146
elastix::OpenCLMovingGenericPyramid::m_GPUPyramidReady
bool m_GPUPyramidReady
Definition: elxOpenCLMovingGenericPyramid.h:135
elastix::OpenCLMovingGenericPyramid::BeforeRegistration
virtual void BeforeRegistration(void)
elastix::OpenCLMovingGenericPyramid::GPUOutputImageType
itk::GPUImage< OutputImagePixelType, OutputImageType::ImageDimension > GPUOutputImageType
Definition: elxOpenCLMovingGenericPyramid.h:90
elastix::OpenCLMovingGenericPyramid::m_GPUPyramid
GPUPyramidPointer m_GPUPyramid
Definition: elxOpenCLMovingGenericPyramid.h:134
elastix::OpenCLMovingGenericPyramid::ReadFromFile
virtual void ReadFromFile(void)
elastix::OpenCLMovingGenericPyramid::ObjectFactoryBasePointer
itk::ObjectFactoryBase::Pointer ObjectFactoryBasePointer
Definition: elxOpenCLMovingGenericPyramid.h:83
elastix::OpenCLMovingGenericPyramid::OutputImageType
Superclass1::OutputImageType OutputImageType
Definition: elxOpenCLMovingGenericPyramid.h:78
elastix::OpenCLMovingGenericPyramid::OutputImagePixelType
Superclass1::OutputImageType::PixelType OutputImagePixelType
Definition: elxOpenCLMovingGenericPyramid.h:80
elastix::OpenCLMovingGenericPyramid::RegisterFactories
void RegisterFactories(void)
elastix::OpenCLMovingGenericPyramid::~OpenCLMovingGenericPyramid
virtual ~OpenCLMovingGenericPyramid()
Definition: elxOpenCLMovingGenericPyramid.h:114
elastix
Definition: elxFixedGenericPyramid.h:25
elastix::OpenCLMovingGenericPyramid::GPUInputImagePointer
GPUInputImageType::Pointer GPUInputImagePointer
Definition: elxOpenCLMovingGenericPyramid.h:88


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo