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
22 #include "elxFixedGenericPyramid.h"
23 #include "itkGPUImage.h"
24 
25 namespace elastix
26 {
27 
47 template< class TElastix >
49  public FixedGenericPyramid< 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( "OpenCLFixedGenericImagePyramid" );
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  OpenCLFixedGenericPyramid( 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 "elxOpenCLFixedGenericPyramid.hxx"
146 #endif
147 
148 #endif // end #ifndef __elxOpenCLOpenCLFixedGenericPyramid_h
itk::GenericMultiResolutionPyramidImageFilter
Framework for creating images in a multi-resolution pyramid.
Definition: itkGenericMultiResolutionPyramidImageFilter.h:119
elastix::OpenCLFixedGenericPyramid::m_Factories
std::vector< ObjectFactoryBasePointer > m_Factories
Definition: elxOpenCLFixedGenericPyramid.h:139
elastix::OpenCLFixedGenericPyramid::GPUPyramidType
itk::GenericMultiResolutionPyramidImageFilter< GPUInputImageType, GPUOutputImageType, float > GPUPyramidType
Definition: elxOpenCLFixedGenericPyramid.h:94
itk::GPUImage
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:64
SmartPointer< Self >
elastix::OpenCLFixedGenericPyramid::Superclass2
FixedGenericPyramid< TElastix >::Superclass2 Superclass2
Definition: elxOpenCLFixedGenericPyramid.h:57
elastix::OpenCLFixedGenericPyramid::BeforeGenerateData
void BeforeGenerateData(void)
elastix::OpenCLFixedGenericPyramid::Pointer
itk::SmartPointer< Self > Pointer
Definition: elxOpenCLFixedGenericPyramid.h:58
elastix::OpenCLFixedGenericPyramid::Self
OpenCLFixedGenericPyramid Self
Definition: elxOpenCLFixedGenericPyramid.h:54
elastix::OpenCLFixedGenericPyramid::BeforeRegistration
virtual void BeforeRegistration(void)
elastix::OpenCLFixedGenericPyramid::InputImageType
Superclass1::InputImageType InputImageType
Definition: elxOpenCLFixedGenericPyramid.h:77
elastix::OpenCLFixedGenericPyramid::GPUInputImageType
itk::GPUImage< InputImagePixelType, InputImageType::ImageDimension > GPUInputImageType
Definition: elxOpenCLFixedGenericPyramid.h:87
elastix::OpenCLFixedGenericPyramid::itkStaticConstMacro
itkStaticConstMacro(ImageDimension, unsigned int, Superclass1::ImageDimension)
elastix::OpenCLFixedGenericPyramid::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: elxOpenCLFixedGenericPyramid.h:59
elastix::OpenCLFixedGenericPyramid::GPUPyramidPointer
GPUPyramidType::Pointer GPUPyramidPointer
Definition: elxOpenCLFixedGenericPyramid.h:95
elastix::OpenCLFixedGenericPyramid::UnregisterFactories
void UnregisterFactories(void)
elastix::OpenCLFixedGenericPyramid::OpenCLFixedGenericPyramid
OpenCLFixedGenericPyramid(const Self &)
elastix::OpenCLFixedGenericPyramid::Superclass
FixedGenericPyramid< TElastix > Superclass
Definition: elxOpenCLFixedGenericPyramid.h:55
elxFixedGenericPyramid.h
itkGPUImage.h
itk::GenericMultiResolutionPyramidImageFilter::PixelType
InputImageType::PixelType PixelType
Definition: itkGenericMultiResolutionPyramidImageFilter.h:151
elastix::OpenCLFixedGenericPyramid::m_GPUPyramid
GPUPyramidPointer m_GPUPyramid
Definition: elxOpenCLFixedGenericPyramid.h:134
elastix::OpenCLFixedGenericPyramid::OutputImagePixelType
Superclass1::OutputImageType::PixelType OutputImagePixelType
Definition: elxOpenCLFixedGenericPyramid.h:80
elastix::OpenCLFixedGenericPyramid::operator=
void operator=(const Self &)
elastix::OpenCLFixedGenericPyramid::~OpenCLFixedGenericPyramid
virtual ~OpenCLFixedGenericPyramid()
Definition: elxOpenCLFixedGenericPyramid.h:114
elastix::OpenCLFixedGenericPyramid::OpenCLFixedGenericPyramid
OpenCLFixedGenericPyramid()
elastix::OpenCLFixedGenericPyramid::m_UseOpenCL
bool m_UseOpenCL
Definition: elxOpenCLFixedGenericPyramid.h:138
elastix::OpenCLFixedGenericPyramid::m_GPUPyramidReady
bool m_GPUPyramidReady
Definition: elxOpenCLFixedGenericPyramid.h:135
elastix::OpenCLFixedGenericPyramid::RegisterFactories
void RegisterFactories(void)
elastix::OpenCLFixedGenericPyramid::ReadFromFile
virtual void ReadFromFile(void)
elastix::OpenCLFixedGenericPyramid::Superclass1
FixedGenericPyramid< TElastix >::Superclass1 Superclass1
Definition: elxOpenCLFixedGenericPyramid.h:56
elxIncludes.h
elastix::OpenCLFixedGenericPyramid::GenerateData
virtual void GenerateData(void)
elastix::OpenCLFixedGenericPyramid::ObjectFactoryBasePointer
itk::ObjectFactoryBase::Pointer ObjectFactoryBasePointer
Definition: elxOpenCLFixedGenericPyramid.h:83
itk::GenericMultiResolutionPyramidImageFilter::InputImageType
Superclass::InputImageType InputImageType
Definition: itkGenericMultiResolutionPyramidImageFilter.h:145
itk::GenericMultiResolutionPyramidImageFilter::OutputImageType
Superclass::OutputImageType OutputImageType
Definition: itkGenericMultiResolutionPyramidImageFilter.h:146
elastix::OpenCLFixedGenericPyramid::OutputImageType
Superclass1::OutputImageType OutputImageType
Definition: elxOpenCLFixedGenericPyramid.h:78
elastix::OpenCLFixedGenericPyramid::GPUOutputImageType
itk::GPUImage< OutputImagePixelType, OutputImageType::ImageDimension > GPUOutputImageType
Definition: elxOpenCLFixedGenericPyramid.h:90
elastix::OpenCLFixedGenericPyramid::GPUInputImagePointer
GPUInputImageType::Pointer GPUInputImagePointer
Definition: elxOpenCLFixedGenericPyramid.h:88
elastix::OpenCLFixedGenericPyramid
A pyramid based on the itk::GenericMultiResolutionPyramidImageFilter. The parameters used in this cla...
Definition: elxOpenCLFixedGenericPyramid.h:50
elastix::OpenCLFixedGenericPyramid::InputImagePixelType
Superclass1::InputImageType::PixelType InputImagePixelType
Definition: elxOpenCLFixedGenericPyramid.h:79
elastix::FixedGenericPyramid
A pyramid based on the itk::GenericMultiResolutionPyramidImageFilter.
Definition: elxFixedGenericPyramid.h:78
elastix::OpenCLFixedGenericPyramid::elxClassNameMacro
elxClassNameMacro("OpenCLFixedGenericImagePyramid")
elastix::OpenCLFixedGenericPyramid::ReportToLog
void ReportToLog(void)
elastix::OpenCLFixedGenericPyramid::SwitchingToCPUAndReport
void SwitchingToCPUAndReport(const bool configError)
elastix::FixedImagePyramidBase
This class is the elastix base class for all FixedImagePyramids.
Definition: elxFixedImagePyramidBase.h:59
elastix::OpenCLFixedGenericPyramid::m_ContextCreated
bool m_ContextCreated
Definition: elxOpenCLFixedGenericPyramid.h:137
elastix
Definition: elxFixedGenericPyramid.h:25
elastix::OpenCLFixedGenericPyramid::m_GPUPyramidCreated
bool m_GPUPyramidCreated
Definition: elxOpenCLFixedGenericPyramid.h:136


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo