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 
41 namespace itk
42 {
59 template< typename TInputImage, typename TOutputImage = TInputImage, typename TParentImageFilter
60  = InPlaceImageFilter< TInputImage, TOutputImage > >
61 class ITKOpenCL_EXPORT GPUInPlaceImageFilter : public GPUImageToImageFilter< TInputImage, TOutputImage,
62  TParentImageFilter >
63 {
64 public:
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 
93 protected:
94 
97 
98  virtual void PrintSelf( std::ostream & os, Indent indent ) const;
99 
112  virtual void AllocateOutputs();
113 
123  virtual void ReleaseInputs();
124 
125 private:
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.
GPUSuperclass::OutputImagePixelType OutputImagePixelType
GPUSuperclass::OutputImageRegionType OutputImageRegionType
GPUSuperclass::OutputImageType OutputImageType
InputImageType::PixelType InputImagePixelType
Base class for GPU filters that take an image as input and overwrite that image as the output...
InputImageType::Pointer InputImagePointer
GPUSuperclass::OutputImagePointer OutputImagePointer
InputImageType::RegionType InputImageRegionType
#define ITKOpenCL_EXPORT
GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > GPUSuperclass
SmartPointer< const Self > ConstPointer
InputImageType::ConstPointer InputImageConstPointer


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo