go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUInPlaceImageFilter.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/*=========================================================================
19*
20* Copyright Insight Software Consortium
21*
22* Licensed under the Apache License, Version 2.0 (the "License");
23* you may not use this file except in compliance with the License.
24* You may obtain a copy of the License at
25*
26* http://www.apache.org/licenses/LICENSE-2.0.txt
27*
28* Unless required by applicable law or agreed to in writing, software
29* distributed under the License is distributed on an "AS IS" BASIS,
30* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31* See the License for the specific language governing permissions and
32* limitations under the License.
33*
34*=========================================================================*/
35#ifndef __itkGPUInPlaceImageFilter_h
36#define __itkGPUInPlaceImageFilter_h
37
38#include "itkInPlaceImageFilter.h"
40
41namespace itk
42{
59template< typename TInputImage, typename TOutputImage = TInputImage, typename TParentImageFilter
60 = InPlaceImageFilter< TInputImage, TOutputImage > >
61class ITKOpenCL_EXPORT GPUInPlaceImageFilter : public GPUImageToImageFilter< TInputImage, TOutputImage,
62 TParentImageFilter >
63{
64public:
65
69 typedef TParentImageFilter CPUSuperclass;
71 typedef SmartPointer< const Self > ConstPointer;
72
75
78 typedef typename GPUSuperclass::OutputImagePointer OutputImagePointer;
81
83 itkStaticConstMacro( InputImageDimension, unsigned int, TInputImage::ImageDimension );
84 itkStaticConstMacro( OutputImageDimension, unsigned int, TOutputImage::ImageDimension );
85
87 typedef TInputImage InputImageType;
88 typedef typename InputImageType::Pointer InputImagePointer;
89 typedef typename InputImageType::ConstPointer InputImageConstPointer;
90 typedef typename InputImageType::RegionType InputImageRegionType;
91 typedef typename InputImageType::PixelType InputImagePixelType;
92
93protected:
94
97
98 virtual void PrintSelf( std::ostream & os, Indent indent ) const;
99
112 virtual void AllocateOutputs();
113
123 virtual void ReleaseInputs();
124
125private:
126
127 GPUInPlaceImageFilter( const Self & ); // purposely not implemented
128 void operator=( const Self & ); // purposely not implemented
129
130};
131
132} // end namespace itk
133
134#ifndef ITK_MANUAL_INSTANTIATION
135#include "itkGPUInPlaceImageFilter.hxx"
136#endif
137
138#endif
class to abstract the behaviour of the GPU filters.
Superclass::OutputImageRegionType OutputImageRegionType
Superclass::OutputImagePixelType OutputImagePixelType
Base class for GPU filters that take an image as input and overwrite that image as the output.
GPUSuperclass::OutputImageRegionType OutputImageRegionType
void operator=(const Self &)
GPUSuperclass::OutputImagePointer OutputImagePointer
virtual void PrintSelf(std::ostream &os, Indent indent) const
virtual void ReleaseInputs()
GPUSuperclass::OutputImagePixelType OutputImagePixelType
virtual void AllocateOutputs()
InputImageType::Pointer InputImagePointer
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
InputImageType::ConstPointer InputImageConstPointer
GPUInPlaceImageFilter(const Self &)
InputImageType::PixelType InputImagePixelType
SmartPointer< const Self > ConstPointer
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension)
InputImageType::RegionType InputImageRegionType
GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > GPUSuperclass
GPUSuperclass::OutputImageType OutputImageType
#define ITKOpenCL_EXPORT


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo