go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUBSplineBaseTransform.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 __itkGPUBSplineBaseTransform_h
19 #define __itkGPUBSplineBaseTransform_h
20 
21 #include "itkGPUDataManager.h"
22 #include "itkGPUImage.h"
23 #include "itkGPUTransformBase.h"
24 
25 namespace itk
26 {
28 itkGPUKernelClassMacro( GPUBSplineTransformKernel );
29 
41 template< typename TScalarType = float, unsigned int NDimensions = 3 >
42 class ITK_EXPORT GPUBSplineBaseTransform : public GPUTransformBase
43 {
44 public:
45 
48 
51 
53  itkStaticConstMacro( SpaceDimension, unsigned int, NDimensions );
54 
57  itkGetConstMacro( SplineOrder, unsigned int );
58 
62 
63  typedef FixedArray< GPUCoefficientImagePointer, NDimensions > GPUCoefficientImageArray;
64  typedef FixedArray< GPUDataManagerPointer, NDimensions > GPUCoefficientImageBaseArray;
65 
67  virtual bool IsBSplineTransform( void ) const { return true; }
68 
70  const GPUCoefficientImageArray GetGPUCoefficientImages( void ) const;
71 
73  const GPUCoefficientImageBaseArray GetGPUCoefficientImagesBases( void ) const;
74 
75 protected:
76 
83  virtual void SetSplineOrder( const unsigned int splineOrder );
84 
87 
90  virtual bool GetSourceCode( std::string & source ) const ITK_OVERRIDE;
91 
92  GPUCoefficientImageArray m_GPUBSplineTransformCoefficientImages;
93  GPUCoefficientImageBaseArray m_GPUBSplineTransformCoefficientImagesBase;
94 
95 private:
96 
97  GPUBSplineBaseTransform( const Self & other ); // purposely not implemented
98  const Self & operator=( const Self & ); // purposely not implemented
99 
100  std::vector< std::string > m_Sources;
101 
102  // User specified spline order (3rd or cubic is the default)
103  unsigned int m_SplineOrder;
104 };
105 
106 } // end namespace itk
107 
108 #ifndef ITK_MANUAL_INSTANTIATION
109 #include "itkGPUBSplineBaseTransform.hxx"
110 #endif
111 
112 #endif /* __itkGPUBSplineBaseTransform_h */
FixedArray< GPUDataManagerPointer, NDimensions > GPUCoefficientImageBaseArray
virtual bool IsBSplineTransform(void) const
GPUImage< TScalarType, NDimensions > GPUCoefficientImageType
GPUDataManager::Pointer GPUDataManagerPointer
Base class for all GPU transforms.
itkGPUKernelClassMacro(GPUBSplineTransformKernel)
GPU base class for the BSplineTransform.
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:63
std::vector< std::string > m_Sources
GPUCoefficientImageType::Pointer GPUCoefficientImagePointer
GPUCoefficientImageArray m_GPUBSplineTransformCoefficientImages
GPUCoefficientImageBaseArray m_GPUBSplineTransformCoefficientImagesBase
FixedArray< GPUCoefficientImagePointer, NDimensions > GPUCoefficientImageArray


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