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 
27 namespace itk
28 {
30 itkGPUKernelClassMacro( GPUShrinkImageFilterKernel );
31 
43 template< typename TInputImage, typename TOutputImage >
44 class ITK_EXPORT GPUShrinkImageFilter :
45  public GPUImageToImageFilter< TInputImage, TOutputImage,
46  ShrinkImageFilter< TInputImage, TOutputImage > >
47 {
48 public:
49 
52  typedef ShrinkImageFilter< TInputImage, TOutputImage > CPUSuperclass;
55  typedef SmartPointer< const Self > ConstPointer;
56 
58  itkNewMacro( Self );
59 
62 
66 
68  typedef TInputImage InputImageType;
69  typedef typename InputImageType::Pointer InputImagePointer;
70  typedef typename InputImageType::ConstPointer InputImageConstPointer;
71  typedef typename InputImageType::RegionType InputImageRegionType;
72  typedef typename InputImageType::PixelType InputImagePixelType;
73 
74  typedef typename CPUSuperclass::ShrinkFactorsType ShrinkFactorsType;
75  typedef typename CPUSuperclass::OutputIndexType OutputIndexType;
76  typedef typename CPUSuperclass::InputIndexType InputIndexType;
77  typedef typename CPUSuperclass::OutputOffsetType OutputOffsetType;
78 
80  itkStaticConstMacro( InputImageDimension, unsigned int,
81  TInputImage::ImageDimension );
82  itkStaticConstMacro( OutputImageDimension, unsigned int,
83  TOutputImage::ImageDimension );
84 
85 protected:
86 
89  virtual void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE;
90 
91  virtual void GPUGenerateData();
92 
93 private:
94 
95  GPUShrinkImageFilter( const Self & ); // purposely not implemented
96  void operator=( const Self & ); // purposely not implemented
97 
100 };
101 
102 } // end namespace itk
103 
104 #ifndef ITK_MANUAL_INSTANTIATION
105 #include "itkGPUShrinkImageFilter.hxx"
106 #endif
107 
108 #endif /* __itkGPUShrinkImageFilter_h */
itk::GPUShrinkImageFilter::itkStaticConstMacro
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension)
itk::GPUShrinkImageFilter::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkGPUShrinkImageFilter.h:55
itk::GPUShrinkImageFilter::InputImageConstPointer
InputImageType::ConstPointer InputImageConstPointer
Definition: itkGPUShrinkImageFilter.h:70
itk::GPUShrinkImageFilter
GPU version of ShrinkImageFilter.
Definition: itkGPUShrinkImageFilter.h:47
itk::GPUShrinkImageFilter::GPUShrinkImageFilter
GPUShrinkImageFilter(const Self &)
SmartPointer< Self >
itk::GPUShrinkImageFilter::Self
GPUShrinkImageFilter Self
Definition: itkGPUShrinkImageFilter.h:51
itk::GPUShrinkImageFilter::OutputImagePixelType
GPUSuperclass::OutputImagePixelType OutputImagePixelType
Definition: itkGPUShrinkImageFilter.h:65
itk::GPUShrinkImageFilter::ShrinkFactorsType
CPUSuperclass::ShrinkFactorsType ShrinkFactorsType
Definition: itkGPUShrinkImageFilter.h:74
itk::GPUShrinkImageFilter::~GPUShrinkImageFilter
~GPUShrinkImageFilter()
Definition: itkGPUShrinkImageFilter.h:88
itk::GPUShrinkImageFilter::OutputImageRegionType
GPUSuperclass::OutputImageRegionType OutputImageRegionType
Definition: itkGPUShrinkImageFilter.h:61
itkGPUImageToImageFilter.h
itk::GPUShrinkImageFilter::GPUSuperclass
GPUImageToImageFilter< TInputImage, TOutputImage, CPUSuperclass > GPUSuperclass
Definition: itkGPUShrinkImageFilter.h:53
itk::GPUShrinkImageFilter::InputIndexType
CPUSuperclass::InputIndexType InputIndexType
Definition: itkGPUShrinkImageFilter.h:76
itk::GPUShrinkImageFilter::InputImageType
TInputImage InputImageType
Definition: itkGPUShrinkImageFilter.h:68
itkGPUImage.h
itk::GPUImageToImageFilter::OutputImageRegionType
Superclass::OutputImageRegionType OutputImageRegionType
Definition: itkGPUImageToImageFilter.h:82
itk::itkGPUKernelClassMacro
itkGPUKernelClassMacro(GPUBSplineTransformKernel)
itk::GPUShrinkImageFilter::m_DeviceLocalMemorySize
std::vcl_size_t m_DeviceLocalMemorySize
Definition: itkGPUShrinkImageFilter.h:99
itk::GPUShrinkImageFilter::GPUGenerateData
virtual void GPUGenerateData()
itk::GPUImageToImageFilter
class to abstract the behaviour of the GPU filters.
Definition: itkGPUImageToImageFilter.h:65
itk::GPUShrinkImageFilter::Pointer
SmartPointer< Self > Pointer
Definition: itkGPUShrinkImageFilter.h:54
itk::GPUShrinkImageFilter::OutputOffsetType
CPUSuperclass::OutputOffsetType OutputOffsetType
Definition: itkGPUShrinkImageFilter.h:77
itk::GPUShrinkImageFilter::PrintSelf
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
itk
Definition: itkAdvancedImageToImageMetric.h:40
itk::GPUShrinkImageFilter::InputImagePointer
InputImageType::Pointer InputImagePointer
Definition: itkGPUShrinkImageFilter.h:69
itk::GPUShrinkImageFilter::InputImagePixelType
InputImageType::PixelType InputImagePixelType
Definition: itkGPUShrinkImageFilter.h:72
itk::GPUShrinkImageFilter::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
itk::GPUShrinkImageFilter::GPUShrinkImageFilter
GPUShrinkImageFilter()
itk::GPUShrinkImageFilter::OutputIndexType
CPUSuperclass::OutputIndexType OutputIndexType
Definition: itkGPUShrinkImageFilter.h:75
itk::GPUShrinkImageFilter::operator=
void operator=(const Self &)
itk::GPUShrinkImageFilter::m_FilterGPUKernelHandle
std::vcl_size_t m_FilterGPUKernelHandle
Definition: itkGPUShrinkImageFilter.h:98
itk::GPUShrinkImageFilter::CPUSuperclass
ShrinkImageFilter< TInputImage, TOutputImage > CPUSuperclass
Definition: itkGPUShrinkImageFilter.h:52
itk::GPUImageToImageFilter::OutputImagePixelType
Superclass::OutputImagePixelType OutputImagePixelType
Definition: itkGPUImageToImageFilter.h:83
itk::GPUShrinkImageFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: itkGPUShrinkImageFilter.h:71


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo