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
23namespace itk
24{
26itkGPUKernelClassMacro( GPUTranslationTransformBaseKernel );
27
39template<
40typename TScalarType = float, // Data type for scalars
41unsigned int NDimensions = 3 >
43{
44public:
45
49
52
54 bool IsTranslationTransform( void ) const override { return true; }
55
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
69protected:
70
73
76 bool GetSourceCode( std::string & source ) const override;
77
80
81private:
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 */
Base class for all GPU transforms.
Base class for all GPU translation transforms.
itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions)
virtual const CPUOutputVectorType & GetCPUOffset(void) const =0
GPUDataManager::Pointer GetParametersDataManager(void) const override
itkStaticConstMacro(ParametersDimension, unsigned int, NDimensions)
GPUTranslationTransformBase(const Self &other)
Vector< TScalarType, NDimensions > CPUOutputVectorType
bool GetSourceCode(std::string &source) const override
const Self & operator=(const Self &)
itkGPUKernelClassMacro(GPUBSplineTransformKernel)


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo