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
28namespace itk
29{
31itkGPUKernelClassMacro( GPUBSplineInterpolateImageFunctionKernel );
32
44template< typename TInputImage, typename TCoordRep = float, typename TCoefficientType = float >
46 public GPUInterpolateImageFunction< TInputImage, TCoordRep,
47 BSplineInterpolateImageFunction< TInputImage, TCoordRep,
48 TCoefficientType > >
49{
50public:
51
55 TInputImage, TCoordRep, BSplineInterpolateImageFunction<
56 TInputImage, TCoordRep, TCoefficientType > > GPUSuperclass;
57 typedef BSplineInterpolateImageFunction<
58 TInputImage, TCoordRep, BSplineInterpolateImageFunction<
59 TInputImage, TCoordRep, TCoefficientType > > CPUSuperclass;
62 typedef SmartPointer< const Self > ConstPointer;
63
66
68 itkNewMacro( Self );
69
71 itkStaticConstMacro( InputImageDimension, unsigned int,
72 TInputImage::ImageDimension );
73
77
79 virtual void SetInputImage( const TInputImage * inputData );
80
83
86
87protected:
88
91 void PrintSelf( std::ostream & os, Indent indent ) const override;
92
95 bool GetSourceCode( std::string & source ) const override;
96
97private:
98
99 GPUBSplineInterpolateImageFunction( const Self & ); // purposely not implemented
100 void operator=( const Self & ); // purposely not implemented
101
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 BSplineInterpolateImageFunction.
BSplineInterpolateImageFunction< TInputImage, TCoordRep, BSplineInterpolateImageFunction< TInputImage, TCoordRep, TCoefficientType > > CPUSuperclass
bool GetSourceCode(std::string &source) const override
GPUInterpolateImageFunction< TInputImage, TCoordRep, BSplineInterpolateImageFunction< TInputImage, TCoordRep, TCoefficientType > > GPUSuperclass
const GPUCoefficientImagePointer GetGPUCoefficients() const
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
const GPUDataManagerPointer GetGPUCoefficientsImageBase() const
void PrintSelf(std::ostream &os, Indent indent) const override
GPUImage< TCoefficientType, InputImageDimension > GPUCoefficientImageType
virtual void SetInputImage(const TInputImage *inputData)
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:64
GPU version of InterpolateImageFunction.
itkGPUKernelClassMacro(GPUBSplineTransformKernel)


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo