go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUCastImageFilter.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 itkGPUCastImageFilter_h
19#define itkGPUCastImageFilter_h
20
21#include "itkCastImageFilter.h"
22#include "itkSimpleDataObjectDecorator.h"
23
24#include "itkGPUFunctorBase.h"
27
28namespace itk
29{
31itkGPUKernelClassMacro(GPUCastImageFilterKernel);
32
44namespace Functor
45{
46template <typename TInput, typename TOutput>
47class ITK_TEMPLATE_EXPORT GPUCast : public GPUFunctorBase
48{
49public:
50 GPUCast() = default;
51
52 ~GPUCast() override = default;
53
57 int
58 SetGPUKernelArguments(OpenCLKernelManager::Pointer KernelManager, int KernelHandle) override
59 {
60 return 0;
61 }
62};
63
64} // end of namespace Functor
65
67template <typename TInputImage, typename TOutputImage>
68class ITK_EXPORT GPUCastImageFilter
70 TInputImage,
71 TOutputImage,
72 Functor::GPUCast<typename TInputImage::PixelType, typename TOutputImage::PixelType>,
73 CastImageFilter<TInputImage, TOutputImage>>
74{
75public:
77
82 TOutputImage,
83 Functor::GPUCast<typename TInputImage::PixelType, typename TOutputImage::PixelType>,
84 CastImageFilter<TInputImage, TOutputImage>>;
85 using CPUSuperclass = CastImageFilter<TInputImage, TOutputImage>;
86 using Pointer = SmartPointer<Self>;
87 using ConstPointer = SmartPointer<const Self>;
88
90 itkNewMacro(Self);
91
94
96 using InputPixelType = typename TInputImage::PixelType;
97 using OutputPixelType = typename TOutputImage::PixelType;
98
100 using InputPixelObjectType = SimpleDataObjectDecorator<InputPixelType>;
101
102protected:
104 ~GPUCastImageFilter() override = default;
105
108 void
109 GPUGenerateData() override;
110};
111
112} // end of namespace itk
113
114#ifndef ITK_MANUAL_INSTANTIATION
115# include "itkGPUCastImageFilter.hxx"
116#endif
117
118#endif /* itkGPUCastImageFilter_h */
Base functor class for GPU functor image filters.
GPU version of CastImageFilter.
SimpleDataObjectDecorator< InputPixelType > InputPixelObjectType
typename TInputImage::PixelType InputPixelType
~GPUCastImageFilter() override=default
SmartPointer< const Self > ConstPointer
ITK_DISALLOW_COPY_AND_MOVE(GPUCastImageFilter)
void GPUGenerateData() override
typename TOutputImage::PixelType OutputPixelType
CastImageFilter< TInputImage, TOutputImage > CPUSuperclass
Implements pixel-wise generic operation on one image using the GPU.
itkGPUKernelClassMacro(GPUBSplineTransformKernel)


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