go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUCompositeTransformCopier.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 __itkGPUCompositeTransformCopier_h
19#define __itkGPUCompositeTransformCopier_h
20
21#include "itkCompositeTransform.h"
23
24namespace itk
25{
63template< typename TTypeList, typename NDimensions,
64typename TCompositeTransform, typename TOutputTransformPrecisionType >
65class GPUCompositeTransformCopier : public Object
66{
67public:
68
71 typedef Object Superclass;
73 typedef SmartPointer< const Self > ConstPointer;
74
76 itkNewMacro( Self );
77
79 itkTypeMacro( GPUCompositeTransformCopier, Object );
80
82 typedef TCompositeTransform CPUCompositeTransformType;
83 typedef typename CPUCompositeTransformType::ConstPointer CPUCompositeTransformConstPointer;
84 typedef typename CPUCompositeTransformType::TransformType CPUTransformType;
85 typedef typename CPUTransformType::Pointer CPUTransformPointer;
86 typedef typename CPUCompositeTransformType::ScalarType CPUScalarType;
87
91 itkStaticConstMacro( SpaceDimension, unsigned int, CPUCompositeTransformType::InputDimension );
92
94 typedef TOutputTransformPrecisionType GPUScalarType;
97 typedef typename GPUCompositeTransformType::Pointer GPUCompositeTransformPointer;
98
104
106 itkSetConstObjectMacro( InputTransform, CPUCompositeTransformType );
107
110
119 itkGetConstMacro( ExplicitMode, bool );
120 itkSetMacro( ExplicitMode, bool );
121
123 void Update( void );
124
125#ifdef ITK_USE_CONCEPT_CHECKING
126 // Begin concept checking
127 itkConceptMacro( OutputTransformPrecisionTypeIsFloatingPointCheck,
128 ( Concept::IsFloatingPoint< TOutputTransformPrecisionType > ) );
129 // End concept checking
130#endif
131
132protected:
133
136 virtual void PrintSelf( std::ostream & os, Indent indent ) const override;
137
138private:
139
140 GPUCompositeTransformCopier( const Self & ); // purposely not implemented
141 void operator=( const Self & ); // purposely not implemented
142
145 ModifiedTimeType m_InternalTransformTime;
148};
149
150} // end namespace itk
151
152#ifndef ITK_MANUAL_INSTANTIATION
153#include "itkGPUCompositeTransformCopier.hxx"
154#endif
155
156#endif /* __itkGPUCompositeTransformCopier_h */
A helper class which creates an GPU composite transform which is perfect copy of the CPU composite tr...
CPUCompositeTransformType::ConstPointer CPUCompositeTransformConstPointer
GPUTransformCopierType::GPUTransformPointer GPUOutputTransformPointer
CPUCompositeTransformConstPointer m_InputTransform
GPUTransformCopierType::Pointer GPUTransformCopierPointer
GPUCompositeTransformCopier(const Self &)
CPUCompositeTransformType::ScalarType CPUScalarType
itkStaticConstMacro(SpaceDimension, unsigned int, CPUCompositeTransformType::InputDimension)
itkGetModifiableObjectMacro(Output, GPUCompositeTransformType)
GPUCompositeTransformType::Pointer GPUCompositeTransformPointer
TOutputTransformPrecisionType GPUScalarType
GPUTransformCopier< TTypeList, NDimensions, CPUTransformType, GPUScalarType > GPUTransformCopierType
CPUCompositeTransformType::TransformType CPUTransformType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
CompositeTransform< GPUScalarType, SpaceDimension > GPUCompositeTransformType
A helper class which creates an GPU transform which is perfect copy of the CPU transform.
GPUTransformType::Pointer GPUTransformPointer


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo