ITK  5.4.0
Insight Toolkit
itkGPUInPlaceImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
19#ifndef itkGPUInPlaceImageFilter_h
20#define itkGPUInPlaceImageFilter_h
21
24
25namespace itk
26{
36template <typename TInputImage,
37 typename TOutputImage = TInputImage,
38 typename TParentImageFilter = InPlaceImageFilter<TInputImage, TOutputImage>>
39class ITK_TEMPLATE_EXPORT GPUInPlaceImageFilter
40 : public GPUImageToImageFilter<TInputImage, TOutputImage, TParentImageFilter>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(GPUInPlaceImageFilter);
44
48 using CPUSuperclass = TParentImageFilter;
51
53 itkOverrideGetNameOfClassMacro(GPUInPlaceImageFilter);
54
60
62 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
63 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
64
66 using InputImageType = TInputImage;
70 using InputImagePixelType = typename InputImageType::PixelType;
71
72protected:
75
76 void
77 PrintSelf(std::ostream & os, Indent indent) const override;
78
91 void
92 AllocateOutputs() override;
93
103 void
104 ReleaseInputs() override;
105};
108} // end namespace itk
109
110#ifndef ITK_MANUAL_INSTANTIATION
111# include "itkGPUInPlaceImageFilter.hxx"
112#endif
113
114#endif
class to abstract the behaviour of the GPU filters.
Base class for GPU filters that take an image as input and overwrite that image as the output.
typename GPUSuperclass::OutputImagePixelType OutputImagePixelType
void ReleaseInputs() override
void PrintSelf(std::ostream &os, Indent indent) const override
void AllocateOutputs() override
typename GPUSuperclass::OutputImageType OutputImageType
typename GPUSuperclass::OutputImagePointer OutputImagePointer
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::ConstPointer InputImageConstPointer
typename GPUSuperclass::OutputImageRegionType OutputImageRegionType
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....