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"
22 #include "itkGPUTransformCopier.h"
23 
24 namespace itk
25 {
63 template< typename TTypeList, typename NDimensions,
64 typename TCompositeTransform, typename TOutputTransformPrecisionType >
65 class GPUCompositeTransformCopier : public Object
66 {
67 public:
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;
95  typedef CompositeTransform< GPUScalarType, SpaceDimension >
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 
132 protected:
133 
136  virtual void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE;
137 
138 private:
139 
140  GPUCompositeTransformCopier( const Self & ); // purposely not implemented
141  void operator=( const Self & ); // purposely not implemented
142 
143  CPUCompositeTransformConstPointer m_InputTransform;
144  GPUCompositeTransformPointer m_Output;
145  ModifiedTimeType m_InternalTransformTime;
147  GPUTransformCopierPointer m_TransformCopier;
148 };
149 
150 } // end namespace itk
151 
152 #ifndef ITK_MANUAL_INSTANTIATION
153 #include "itkGPUCompositeTransformCopier.hxx"
154 #endif
155 
156 #endif /* __itkGPUCompositeTransformCopier_h */
itkGetModifiableObjectMacro(Output, GPUCompositeTransformType)
CPUCompositeTransformType::ScalarType CPUScalarType
CPUCompositeTransformType::TransformType CPUTransformType
A helper class which creates an GPU Transform which is perfect copy of the CPU Transform.
GPUTransformCopier< TTypeList, NDimensions, CPUTransformType, GPUScalarType > GPUTransformCopierType
itkStaticConstMacro(SpaceDimension, unsigned int, CPUCompositeTransformType::InputDimension)
CPUCompositeTransformConstPointer m_InputTransform
GPUTransformCopierType::GPUTransformPointer GPUOutputTransformPointer
CPUCompositeTransformType::ConstPointer CPUCompositeTransformConstPointer
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
GPUCompositeTransformType::Pointer GPUCompositeTransformPointer
A helper class which creates an GPU Composite Transform which is perfect copy of the CPU Composite Tr...
CompositeTransform< GPUScalarType, SpaceDimension > GPUCompositeTransformType
GPUTransformCopierType::Pointer GPUTransformCopierPointer
GPUTransformType::Pointer GPUTransformPointer
TOutputTransformPrecisionType GPUScalarType


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo