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 
24 namespace itk
25 {
37 template< typename TScalarType = float, unsigned int NDimensions = 3 >
39 {
40 public:
41 
45 
48 
50  typedef TScalarType ScalarType;
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 
97 protected:
98 
101 
104  bool GetSourceCode( std::string & source ) const override;
105 
108  GPUDataManager::Pointer GetParametersDataManager( const std::size_t index ) const override;
109 
110 private:
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
const Self & operator=(const Self &)
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)
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)
SmartPointer< Self > Pointer
Base class for all GPU transforms.


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.9.1 elastix logo