go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUTranslationTransformBase.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 __itkGPUTranslationTransformBase_h
19 #define __itkGPUTranslationTransformBase_h
20 
21 #include "itkGPUTransformBase.h"
22 
23 namespace itk
24 {
26 itkGPUKernelClassMacro( GPUTranslationTransformBaseKernel );
27 
39 template<
40 typename TScalarType = float, // Data type for scalars
41 unsigned int NDimensions = 3 >
43 {
44 public:
45 
49 
51  itkTypeMacro( GPUTranslationTransformBase, GPUSuperclass );
52 
54  virtual bool IsTranslationTransform( void ) const { return true; }
55 
57  typedef TScalarType ScalarType;
58 
60  itkStaticConstMacro( SpaceDimension, unsigned int, NDimensions );
61  itkStaticConstMacro( ParametersDimension, unsigned int, NDimensions );
62 
64  typedef Vector< TScalarType, NDimensions > CPUOutputVectorType;
65 
67  virtual const CPUOutputVectorType & GetCPUOffset( void ) const = 0;
68 
69 protected:
70 
73 
76  virtual bool GetSourceCode( std::string & source ) const ITK_OVERRIDE;
77 
79  virtual GPUDataManager::Pointer GetParametersDataManager( void ) const ITK_OVERRIDE;
80 
81 private:
82 
83  GPUTranslationTransformBase( const Self & other ); // purposely not implemented
84  const Self & operator=( const Self & ); // purposely not implemented
85 
86  std::vector< std::string > m_Sources;
87 };
88 
89 } // end namespace itk
90 
91 #ifndef ITK_MANUAL_INSTANTIATION
92 #include "itkGPUTranslationTransformBase.hxx"
93 #endif
94 
95 #endif /* itkGPUTranslationTransformBase_h */
Vector< TScalarType, NDimensions > CPUOutputVectorType
Base class for all GPU transforms.
itkGPUKernelClassMacro(GPUBSplineTransformKernel)
Base class for all GPU translation transforms.


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