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,
47 TCoordRep,
48 BSplineInterpolateImageFunction<TInputImage, TCoordRep, TCoefficientType>>
49{
50public:
52
57 TCoordRep,
58 BSplineInterpolateImageFunction<TInputImage, TCoordRep, TCoefficientType>>;
60 BSplineInterpolateImageFunction<TInputImage,
61 TCoordRep,
62 BSplineInterpolateImageFunction<TInputImage, TCoordRep, TCoefficientType>>;
64 using Pointer = SmartPointer<Self>;
65 using ConstPointer = SmartPointer<const Self>;
66
69
71 itkNewMacro(Self);
72
74 itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
75
79
81 void
82 SetInputImage(const TInputImage * inputData) override;
83
87
91
92protected:
95 void
96 PrintSelf(std::ostream & os, Indent indent) const override;
97
100 bool
101 GetSourceCode(std::string & source) const override;
102
103private:
104 GPUCoefficientImagePointer m_GPUCoefficients{};
105 GPUDataManagerPointer m_GPUCoefficientsImageBase{};
106
107 std::vector<std::string> m_Sources{};
108};
109
110} // end namespace itk
111
112#ifndef ITK_MANUAL_INSTANTIATION
113# include "itkGPUBSplineInterpolateImageFunction.hxx"
114#endif
115
116#endif /* itkGPUBSplineInterpolateImageFunction_h */
GPU version of BSplineInterpolateImageFunction.
bool GetSourceCode(std::string &source) const override
const GPUCoefficientImagePointer GetGPUCoefficients() const
ITK_DISALLOW_COPY_AND_MOVE(GPUBSplineInterpolateImageFunction)
~GPUBSplineInterpolateImageFunction() override=default
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
const GPUDataManagerPointer GetGPUCoefficientsImageBase() const
void SetInputImage(const TInputImage *inputData) override
typename GPUCoefficientImageType::Pointer GPUCoefficientImagePointer
void PrintSelf(std::ostream &os, Indent indent) const override
BSplineInterpolateImageFunction< TInputImage, TCoordRep, BSplineInterpolateImageFunction< TInputImage, TCoordRep, TCoefficientType > > CPUSuperclass
Templated n-dimensional image class for the GPU.
Definition itkGPUImage.h:64
GPU version of InterpolateImageFunction.
itkGPUKernelClassMacro(GPUBSplineTransformKernel)


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo