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 
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  virtual bool GetSourceCode( std::string & source ) const ITK_OVERRIDE;
105 
108  virtual GPUDataManager::Pointer GetParametersDataManager( const std::size_t index ) const ITK_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 */
itk::GPUCompositeTransformBase::IsTranslationTransform
bool IsTranslationTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase::TransformTypePointer
TransformType::Pointer TransformTypePointer
Definition: itkGPUCompositeTransformBase.h:52
itk::GPUCompositeTransformBase::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, NDimensions)
itkGPUTransformBase.h
SmartPointer< Self >
itk::GPUCompositeTransformBase::~GPUCompositeTransformBase
virtual ~GPUCompositeTransformBase()
Definition: itkGPUCompositeTransformBase.h:100
itk::GPUCompositeTransformBase::GPUCompositeTransformBase
GPUCompositeTransformBase()
Definition: itkGPUCompositeTransformBase.h:99
itk::GPUCompositeTransformBase::IsBSplineTransform
bool IsBSplineTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase::operator=
const Self & operator=(const Self &)
itk::GPUCompositeTransformBase::GetNumberOfTransforms
virtual SizeValueType GetNumberOfTransforms() const =0
itk::GPUCompositeTransformBase::TransformType
Transform< TScalarType, NDimensions, NDimensions > TransformType
Definition: itkGPUCompositeTransformBase.h:51
itk::GPUCompositeTransformBase::Self
GPUCompositeTransformBase Self
Definition: itkGPUCompositeTransformBase.h:43
itk::GPUCompositeTransformBase::HasTranslationTransform
virtual bool HasTranslationTransform(void) const
itk::GPUCompositeTransformBase::IsTranslationTransform
virtual bool IsTranslationTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase::GPUCompositeTransformBase
GPUCompositeTransformBase(const Self &other)
itk::GPUCompositeTransformBase::HasBSplineTransform
virtual bool HasBSplineTransform(void) const
itk::GPUCompositeTransformBase::HasMatrixOffsetTransform
virtual bool HasMatrixOffsetTransform(void) const
itk::GPUCompositeTransformBase::HasIdentityTransform
virtual bool HasIdentityTransform(void) const
itk::GPUCompositeTransformBase::IsMatrixOffsetTransform
bool IsMatrixOffsetTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, NDimensions)
itk::GPUCompositeTransformBase::TransformTypeConstPointer
TransformType::ConstPointer TransformTypeConstPointer
Definition: itkGPUCompositeTransformBase.h:53
itk::GPUCompositeTransformBase
Definition: itkGPUCompositeTransformBase.h:39
itk::GPUCompositeTransformBase::IsIdentityTransform
virtual bool IsIdentityTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase::ScalarType
TScalarType ScalarType
Definition: itkGPUCompositeTransformBase.h:47
itk
Definition: itkAdvancedImageToImageMetric.h:40
itk::GPUCompositeTransformBase::IsMatrixOffsetTransform
virtual bool IsMatrixOffsetTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase::GetNthTransform
virtual const TransformTypePointer GetNthTransform(SizeValueType n) const =0
itk::GPUCompositeTransformBase::IsIdentityTransform
bool IsIdentityTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
TScalarType
itk::GPUTransformBase
Base class for all GPU transforms.
Definition: itkGPUTransformBase.h:37
itk::GPUCompositeTransformBase::GPUSuperclass
GPUTransformBase GPUSuperclass
Definition: itkGPUCompositeTransformBase.h:44
itk::GPUCompositeTransformBase::GetSourceCode
virtual bool GetSourceCode(std::string &source) const ITK_OVERRIDE
itk::GPUCompositeTransformBase::IsBSplineTransform
virtual bool IsBSplineTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase::GetParametersDataManager
virtual GPUDataManager::Pointer GetParametersDataManager(const std::vcl_size_t index) const ITK_OVERRIDE


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo