go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUBSplineInterpolateImageFunction.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 __itkGPUBSplineInterpolateImageFunction_h
19 #define __itkGPUBSplineInterpolateImageFunction_h
20 
22 #include "itkGPUDataManager.h"
23 #include "itkGPUImage.h"
24 
25 #include "itkBSplineInterpolateImageFunction.h"
26 #include "itkVersion.h"
27 
28 namespace itk
29 {
31 itkGPUKernelClassMacro( GPUBSplineInterpolateImageFunctionKernel );
32 
44 template< typename TInputImage, typename TCoordRep = float, typename TCoefficientType = float >
46  public GPUInterpolateImageFunction< TInputImage, TCoordRep,
47  BSplineInterpolateImageFunction< TInputImage, TCoordRep,
48  TCoefficientType > >
49 {
50 public:
51 
55  TInputImage, TCoordRep, BSplineInterpolateImageFunction<
56  TInputImage, TCoordRep, TCoefficientType > > GPUSuperclass;
57  typedef BSplineInterpolateImageFunction<
58  TInputImage, TCoordRep, BSplineInterpolateImageFunction<
59  TInputImage, TCoordRep, TCoefficientType > > CPUSuperclass;
60  typedef GPUSuperclass Superclass;
62  typedef SmartPointer< const Self > ConstPointer;
63 
65  itkTypeMacro( GPUBSplineInterpolateImageFunction, GPUSuperclass );
66 
68  itkNewMacro( Self );
69 
71  itkStaticConstMacro( InputImageDimension, unsigned int,
72  TInputImage::ImageDimension );
73 
77 
79  virtual void SetInputImage( const TInputImage * inputData );
80 
82  const GPUCoefficientImagePointer GetGPUCoefficients() const;
83 
85  const GPUDataManagerPointer GetGPUCoefficientsImageBase() const;
86 
87 protected:
88 
91  virtual void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE;
92 
95  virtual bool GetSourceCode( std::string & source ) const ITK_OVERRIDE;
96 
97 private:
98 
99  GPUBSplineInterpolateImageFunction( const Self & ); // purposely not implemented
100  void operator=( const Self & ); // purposely not implemented
101 
102  GPUCoefficientImagePointer m_GPUCoefficients;
103  GPUDataManagerPointer m_GPUCoefficientsImageBase;
104 
105  std::vector< std::string > m_Sources;
106 };
107 
108 } // end namespace itk
109 
110 #ifndef ITK_MANUAL_INSTANTIATION
111 #include "itkGPUBSplineInterpolateImageFunction.hxx"
112 #endif
113 
114 #endif /* __itkGPUBSplineInterpolateImageFunction_h */
GPU version of InterpolateImageFunction.
itkGPUKernelClassMacro(GPUBSplineTransformKernel)
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:63
GPU version of BSplineInterpolateImageFunction.
GPUImage< TCoefficientType, InputImageDimension > GPUCoefficientImageType
BSplineInterpolateImageFunction< TInputImage, TCoordRep, BSplineInterpolateImageFunction< TInputImage, TCoordRep, TCoefficientType > > CPUSuperclass
GPUInterpolateImageFunction< TInputImage, TCoordRep, BSplineInterpolateImageFunction< TInputImage, TCoordRep, TCoefficientType > > GPUSuperclass


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