ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkGPUDiscreteGaussianImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 itkGPUDiscreteGaussianImageFilter_h
19 #define itkGPUDiscreteGaussianImageFilter_h
20 
21 #include "itkGPUImage.h"
25 
26 namespace itk
27 {
46 template< typename TInputImage, typename TOutputImage >
47 class ITK_TEMPLATE_EXPORT GPUDiscreteGaussianImageFilter :
48  public GPUImageToImageFilter< TInputImage, TOutputImage, DiscreteGaussianImageFilter< TInputImage, TOutputImage > >
49 {
50 public:
51  ITK_DISALLOW_COPY_AND_ASSIGN(GPUDiscreteGaussianImageFilter);
52 
59 
61  itkNewMacro(Self);
62 
65 
67  using InputImageType = TInputImage;
68  using OutputImageType = TOutputImage;
69 
72  static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
73 
76  using OutputPixelType = typename TOutputImage::PixelType;
77  using OutputInternalPixelType = typename TOutputImage::InternalPixelType;
78  using InputPixelType = typename TInputImage::PixelType;
79  using InputInternalPixelType = typename TInputImage::InternalPixelType;
80 
84 
96 
97  void GenerateInputRequestedRegion() override;
98 
99 protected:
102 
103  void PrintSelf(std::ostream & os, Indent indent) const override;
104 
106  void GPUGenerateData() override;
107 
108 private:
112  std::vector< typename IntermediateFilterType::Pointer > m_IntermediateFilters;
114 };
115 } // end namespace itk
116 
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkGPUDiscreteGaussianImageFilter.hxx"
119 #endif
120 
121 #endif
class to abstract the behaviour of the GPU filters.
typename TInputImage::InternalPixelType InputInternalPixelType
typename NumericTraits< RealOutputPixelType >::ValueType RealOutputPixelValueType
Define numeric traits for std::vector.
Base class for all process objects that output image data.
typename TOutputImage::PixelType OutputPixelType
Applies a single NeighborhoodOperator to an image region using the GPU.
typename TInputImage::PixelType InputPixelType
typename NumericTraits< InputPixelType >::ValueType InputPixelValueType
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:40
typename NumericTraits< OutputPixelType >::ValueType OutputPixelValueType
TOutputImage OutputImageType
std::vector< typename IntermediateFilterType::Pointer > m_IntermediateFilters
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename TOutputImage::InternalPixelType OutputInternalPixelType
Blurs an image by separable convolution with discrete gaussian kernels. This filter performs Gaussian...
Blurs an image by separable convolution with discrete gaussian kernels. This filter performs Gaussian...