go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUInterpolatorCopier.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 __itkGPUInterpolatorCopier_h
19 #define __itkGPUInterpolatorCopier_h
20 
21 #include "itkInterpolateImageFunction.h"
22 #include "itkGPUImage.h"
23 
24 namespace itk
25 {
64 template< typename TTypeList, typename NDimensions,
65 typename TInterpolator, typename TOutputCoordRep >
66 class GPUInterpolatorCopier : public Object
67 {
68 public:
69 
72  typedef Object Superclass;
74  typedef SmartPointer< const Self > ConstPointer;
75 
77  itkNewMacro( Self );
78 
80  itkTypeMacro( GPUInterpolatorCopier, Object );
81 
83  typedef TInterpolator CPUInterpolatorType;
84  typedef typename CPUInterpolatorType::ConstPointer CPUInterpolatorConstPointer;
85  typedef typename CPUInterpolatorType::InputImageType CPUInputImageType;
86  typedef typename CPUInterpolatorType::CoordRepType CPUCoordRepType;
87  typedef TOutputCoordRep GPUCoordRepType;
88 
90  typedef InterpolateImageFunction< CPUInputImageType, GPUCoordRepType >
92  typedef typename GPUInterpolatorType::Pointer GPUInterpolatorPointer;
93  typedef typename GPUInterpolatorType::ConstPointer GPUInterpolatorConstPointer;
94 
96  typedef typename CPUInputImageType::PixelType CPUInputImagePixelType;
99  typedef InterpolateImageFunction< GPUInputImageType, GPUCoordRepType >
101  typedef typename GPUExplicitInterpolatorType::Pointer GPUExplicitInterpolatorPointer;
102  typedef typename GPUExplicitInterpolatorType::ConstPointer GPUExplicitInterpolatorConstPointer;
103 
105  itkSetConstObjectMacro( InputInterpolator, CPUInterpolatorType );
106 
109 
113 
120  itkGetConstMacro( ExplicitMode, bool );
121  itkSetMacro( ExplicitMode, bool );
122 
124  void Update( void );
125 
126 #ifdef ITK_USE_CONCEPT_CHECKING
127  // Begin concept checking
128  itkConceptMacro( OutputCoordRepIsFloatingPointCheck,
129  ( Concept::IsFloatingPoint< TOutputCoordRep > ) );
130  // End concept checking
131 #endif
132 
133 protected:
134 
137  virtual void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE;
138 
139 private:
140 
141  GPUInterpolatorCopier( const Self & ); // purposely not implemented
142  void operator=( const Self & ); // purposely not implemented
143 
147  ModifiedTimeType m_InternalTransformTime;
149 };
150 
151 } // end namespace itk
152 
153 #ifndef ITK_MANUAL_INSTANTIATION
154 #include "itkGPUInterpolatorCopier.hxx"
155 #endif
156 
157 #endif /* __itkGPUInterpolatorCopier_h */
itk::GPUInterpolatorCopier::CPUInterpolatorType
TInterpolator CPUInterpolatorType
Definition: itkGPUInterpolatorCopier.h:80
itk::GPUInterpolatorCopier::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkGPUInterpolatorCopier.h:74
itk::GPUInterpolatorCopier
A helper class which creates an GPU interpolator which is perfect copy of the CPU interpolator.
Definition: itkGPUInterpolatorCopier.h:67
itk::GPUImage
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:64
SmartPointer< Self >
itk::GPUInterpolatorCopier::~GPUInterpolatorCopier
virtual ~GPUInterpolatorCopier()
Definition: itkGPUInterpolatorCopier.h:136
itk::GPUInterpolatorCopier::operator=
void operator=(const Self &)
itk::GPUInterpolatorCopier::GPUExplicitInterpolatorType
InterpolateImageFunction< GPUInputImageType, GPUCoordRepType > GPUExplicitInterpolatorType
Definition: itkGPUInterpolatorCopier.h:100
itk::GPUInterpolatorCopier::m_InputInterpolator
CPUInterpolatorConstPointer m_InputInterpolator
Definition: itkGPUInterpolatorCopier.h:144
itk::GPUInterpolatorCopier::CPUCoordRepType
CPUInterpolatorType::CoordRepType CPUCoordRepType
Definition: itkGPUInterpolatorCopier.h:86
itk::GPUInterpolatorCopier::m_ExplicitMode
bool m_ExplicitMode
Definition: itkGPUInterpolatorCopier.h:148
itk::GPUInterpolatorCopier::GPUInterpolatorConstPointer
GPUInterpolatorType::ConstPointer GPUInterpolatorConstPointer
Definition: itkGPUInterpolatorCopier.h:93
itk::GPUInterpolatorCopier::GPUInterpolatorType
InterpolateImageFunction< CPUInputImageType, GPUCoordRepType > GPUInterpolatorType
Definition: itkGPUInterpolatorCopier.h:91
itk::GPUInterpolatorCopier::Superclass
Object Superclass
Definition: itkGPUInterpolatorCopier.h:72
itkGPUImage.h
itk::GPUInterpolatorCopier::Update
void Update(void)
itk::GPUInterpolatorCopier::GPUCoordRepType
TOutputCoordRep GPUCoordRepType
Definition: itkGPUInterpolatorCopier.h:87
itk::GPUInterpolatorCopier::m_Output
GPUInterpolatorPointer m_Output
Definition: itkGPUInterpolatorCopier.h:145
itk::GPUInterpolatorCopier::GPUExplicitInterpolatorPointer
GPUExplicitInterpolatorType::Pointer GPUExplicitInterpolatorPointer
Definition: itkGPUInterpolatorCopier.h:101
itk::GPUInterpolatorCopier::GPUInterpolatorCopier
GPUInterpolatorCopier(const Self &)
itk::GPUInterpolatorCopier::m_InternalTransformTime
ModifiedTimeType m_InternalTransformTime
Definition: itkGPUInterpolatorCopier.h:147
itk::GPUInterpolatorCopier::GPUInterpolatorPointer
GPUInterpolatorType::Pointer GPUInterpolatorPointer
Definition: itkGPUInterpolatorCopier.h:92
itk::GPUInterpolatorCopier::CPUInputImageType
CPUInterpolatorType::InputImageType CPUInputImageType
Definition: itkGPUInterpolatorCopier.h:85
itk::GPUInterpolatorCopier::GPUInputImageType
itk::GPUImage< CPUInputImagePixelType, CPUInputImageType::ImageDimension > GPUInputImageType
Definition: itkGPUInterpolatorCopier.h:98
itk::GPUInterpolatorCopier::Pointer
SmartPointer< Self > Pointer
Definition: itkGPUInterpolatorCopier.h:73
itk::GPUInterpolatorCopier::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(ExplicitOutput, GPUExplicitInterpolatorType)
itk
Definition: itkAdvancedImageToImageMetric.h:40
itk::GPUInterpolatorCopier::GPUInterpolatorCopier
GPUInterpolatorCopier()
itk::GPUInterpolatorCopier::m_ExplicitOutput
GPUExplicitInterpolatorPointer m_ExplicitOutput
Definition: itkGPUInterpolatorCopier.h:146
itk::GPUInterpolatorCopier::CPUInterpolatorConstPointer
CPUInterpolatorType::ConstPointer CPUInterpolatorConstPointer
Definition: itkGPUInterpolatorCopier.h:84
itk::GPUInterpolatorCopier::PrintSelf
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
itk::GPUInterpolatorCopier::Self
GPUInterpolatorCopier Self
Definition: itkGPUInterpolatorCopier.h:71
itk::GPUInterpolatorCopier::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(Output, GPUInterpolatorType)
itk::GPUInterpolatorCopier::GPUExplicitInterpolatorConstPointer
GPUExplicitInterpolatorType::ConstPointer GPUExplicitInterpolatorConstPointer
Definition: itkGPUInterpolatorCopier.h:102
itk::GPUInterpolatorCopier::CPUInputImagePixelType
CPUInputImageType::PixelType CPUInputImagePixelType
Definition: itkGPUInterpolatorCopier.h:96


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo