go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUShrinkImageFilter.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 itkGPUShrinkImageFilter_h
19#define itkGPUShrinkImageFilter_h
20
21#include "itkShrinkImageFilter.h"
22
24#include "itkGPUImage.h"
25#include "itkVersion.h"
26
27namespace itk
28{
30itkGPUKernelClassMacro(GPUShrinkImageFilterKernel);
31
43template <typename TInputImage, typename TOutputImage>
44class ITK_EXPORT GPUShrinkImageFilter
45 : public GPUImageToImageFilter<TInputImage, TOutputImage, ShrinkImageFilter<TInputImage, TOutputImage>>
46{
47public:
49
52 using CPUSuperclass = ShrinkImageFilter<TInputImage, TOutputImage>;
54 using Pointer = SmartPointer<Self>;
55 using ConstPointer = SmartPointer<const Self>;
56
58 itkNewMacro(Self);
59
62
64 using OutputImageRegionType = typename GPUSuperclass::OutputImageRegionType;
65 using OutputImagePixelType = typename GPUSuperclass::OutputImagePixelType;
66
68 using InputImageType = TInputImage;
69 using InputImagePointer = typename InputImageType::Pointer;
70 using InputImageConstPointer = typename InputImageType::ConstPointer;
71 using InputImageRegionType = typename InputImageType::RegionType;
72 using InputImagePixelType = typename InputImageType::PixelType;
73
74 using ShrinkFactorsType = typename CPUSuperclass::ShrinkFactorsType;
75 using OutputIndexType = typename CPUSuperclass::OutputIndexType;
76 using InputIndexType = typename CPUSuperclass::InputIndexType;
77 using OutputOffsetType = typename CPUSuperclass::OutputOffsetType;
78
80 itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
81 itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
82
83protected:
85 ~GPUShrinkImageFilter() override = default;
86 void
87 PrintSelf(std::ostream & os, Indent indent) const override;
88
89 void
90 GPUGenerateData() override;
91
92private:
95};
96
97} // end namespace itk
98
99#ifndef ITK_MANUAL_INSTANTIATION
100# include "itkGPUShrinkImageFilter.hxx"
101#endif
102
103#endif /* itkGPUShrinkImageFilter_h */
class to abstract the behaviour of the GPU filters.
GPU version of ShrinkImageFilter.
ShrinkImageFilter< TInputImage, TOutputImage > CPUSuperclass
ITK_DISALLOW_COPY_AND_MOVE(GPUShrinkImageFilter)
typename GPUSuperclass::OutputImagePixelType OutputImagePixelType
typename InputImageType::RegionType InputImageRegionType
void PrintSelf(std::ostream &os, Indent indent) const override
typename CPUSuperclass::OutputOffsetType OutputOffsetType
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension)
SmartPointer< const Self > ConstPointer
~GPUShrinkImageFilter() override=default
typename CPUSuperclass::InputIndexType InputIndexType
typename InputImageType::Pointer InputImagePointer
void GPUGenerateData() override
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
typename InputImageType::ConstPointer InputImageConstPointer
typename GPUSuperclass::OutputImageRegionType OutputImageRegionType
typename InputImageType::PixelType InputImagePixelType
typename CPUSuperclass::OutputIndexType OutputIndexType
typename CPUSuperclass::ShrinkFactorsType ShrinkFactorsType
itkGPUKernelClassMacro(GPUBSplineTransformKernel)


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo