go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUCompositeTransformBase.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 __itkGPUCompositeTransformBase_h
19#define __itkGPUCompositeTransformBase_h
20
21#include "itkGPUTransformBase.h"
22#include "itkTransform.h"
23
24namespace itk
25{
37template< typename TScalarType = float, unsigned int NDimensions = 3 >
39{
40public:
41
45
48
51 typedef Transform< TScalarType, NDimensions, NDimensions > TransformType;
52 typedef typename TransformType::Pointer TransformTypePointer;
53 typedef typename TransformType::ConstPointer TransformTypeConstPointer;
54
56 itkStaticConstMacro( InputSpaceDimension, unsigned int, NDimensions );
57 itkStaticConstMacro( OutputSpaceDimension, unsigned int, NDimensions );
58
60 virtual SizeValueType GetNumberOfTransforms() const = 0;
61
63 virtual const TransformTypePointer GetNthTransform( SizeValueType n ) const = 0;
64
67 virtual bool HasIdentityTransform( void ) const;
68
71 virtual bool HasMatrixOffsetTransform( void ) const;
72
75 virtual bool HasTranslationTransform( void ) const;
76
79 virtual bool HasBSplineTransform( void ) const;
80
83 virtual bool IsIdentityTransform( const std::size_t index ) const;
84
87 virtual bool IsMatrixOffsetTransform( const std::size_t index ) const;
88
91 virtual bool IsTranslationTransform( const std::size_t index ) const;
92
95 virtual bool IsBSplineTransform( const std::size_t index ) const;
96
97protected:
98
101
104 bool GetSourceCode( std::string & source ) const override;
105
108 GPUDataManager::Pointer GetParametersDataManager( const std::size_t index ) const override;
109
110private:
111
112 GPUCompositeTransformBase( const Self & other ); // purposely not implemented
113 const Self & operator=( const Self & ); // purposely not implemented
114
118 bool IsIdentityTransform( const std::size_t index,
119 const bool loadSource, std::string & source ) const;
120
125 bool IsMatrixOffsetTransform( const std::size_t index,
126 const bool loadSource, std::string & source ) const;
127
131 bool IsTranslationTransform( const std::size_t index,
132 const bool loadSource, std::string & source ) const;
133
137 bool IsBSplineTransform( const std::size_t index,
138 const bool loadSource, std::string & source ) const;
139
140};
141
142} // end namespace itk
143
144#ifndef ITK_MANUAL_INSTANTIATION
145#include "itkGPUCompositeTransformBase.hxx"
146#endif
147
148#endif /* __itkGPUCompositeTransformBase_h */
GPUDataManager::Pointer GetParametersDataManager(const std::vcl_size_t index) const override
virtual SizeValueType GetNumberOfTransforms() const =0
virtual const TransformTypePointer GetNthTransform(SizeValueType n) const =0
bool IsBSplineTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
virtual bool HasTranslationTransform(void) const
itkStaticConstMacro(InputSpaceDimension, unsigned int, NDimensions)
const Self & operator=(const Self &)
virtual bool IsIdentityTransform(const std::vcl_size_t index) const
virtual bool HasIdentityTransform(void) const
GPUCompositeTransformBase(const Self &other)
Transform< TScalarType, NDimensions, NDimensions > TransformType
bool GetSourceCode(std::string &source) const override
virtual bool IsBSplineTransform(const std::vcl_size_t index) const
bool IsIdentityTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
TransformType::ConstPointer TransformTypeConstPointer
virtual bool IsMatrixOffsetTransform(const std::vcl_size_t index) const
virtual bool IsTranslationTransform(const std::vcl_size_t index) const
virtual bool HasMatrixOffsetTransform(void) const
virtual bool HasBSplineTransform(void) const
bool IsTranslationTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
bool IsMatrixOffsetTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itkStaticConstMacro(OutputSpaceDimension, unsigned int, NDimensions)
Base class for all GPU transforms.


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo