ITK  5.2.0
Insight Toolkit
itkGPUDiscreteGaussianImageFilter.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  * 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 {
50 template <typename TInputImage, typename TOutputImage>
51 class ITK_TEMPLATE_EXPORT GPUDiscreteGaussianImageFilter
52  : public GPUImageToImageFilter<TInputImage, TOutputImage, DiscreteGaussianImageFilter<TInputImage, TOutputImage>>
53 {
54 public:
55  ITK_DISALLOW_COPY_AND_MOVE(GPUDiscreteGaussianImageFilter);
56 
63 
65  itkNewMacro(Self);
66 
69 
71  using InputImageType = TInputImage;
72  using OutputImageType = TOutputImage;
73 
76  static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
77 
80  using OutputPixelType = typename TOutputImage::PixelType;
81  using OutputInternalPixelType = typename TOutputImage::InternalPixelType;
82  using InputPixelType = typename TInputImage::PixelType;
83  using InputInternalPixelType = typename TInputImage::InternalPixelType;
84 
88 
92  using FirstFilterType =
96  using LastFilterType =
98  using SingleFilterType =
100 
101  void
102  GenerateInputRequestedRegion() override;
103 
104 protected:
106  ~GPUDiscreteGaussianImageFilter() override = default;
107 
108  void
109  PrintSelf(std::ostream & os, Indent indent) const override;
110 
112  void
113  GPUGenerateData() override;
114 
115 private:
119  std::vector<typename IntermediateFilterType::Pointer> m_IntermediateFilters;
121 };
122 } // end namespace itk
123 
124 #ifndef ITK_MANUAL_INSTANTIATION
125 # include "itkGPUDiscreteGaussianImageFilter.hxx"
126 #endif
127 
128 #endif
itk::DiscreteGaussianImageFilter
Blurs an image by separable convolution with discrete gaussian kernels. This filter performs Gaussian...
Definition: itkDiscreteGaussianImageFilter.h:63
itk::DiscreteGaussianImageFilter::InputInternalPixelType
typename TInputImage::InternalPixelType InputInternalPixelType
Definition: itkDiscreteGaussianImageFilter.h:89
itk::GPUImage
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:40
itk::NumericTraits::ValueType
T ValueType
Definition: itkNumericTraits.h:65
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::GPUNeighborhoodOperatorImageFilter
Applies a single NeighborhoodOperator to an image region using the GPU.
Definition: itkGPUNeighborhoodOperatorImageFilter.h:50
itk::DiscreteGaussianImageFilter::OutputPixelValueType
typename NumericTraits< OutputPixelType >::ValueType OutputPixelValueType
Definition: itkDiscreteGaussianImageFilter.h:93
itk::DiscreteGaussianImageFilter::OutputPixelType
typename TOutputImage::PixelType OutputPixelType
Definition: itkDiscreteGaussianImageFilter.h:86
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itkGPUImageToImageFilter.h
itk::GPUDiscreteGaussianImageFilter::m_LastFilter
LastFilterType::Pointer m_LastFilter
Definition: itkGPUDiscreteGaussianImageFilter.h:118
itkGPUImage.h
itk::DiscreteGaussianImageFilter::InputPixelType
typename TInputImage::PixelType InputPixelType
Definition: itkDiscreteGaussianImageFilter.h:88
itk::GPUImageToImageFilter
class to abstract the behaviour of the GPU filters.
Definition: itkGPUImageToImageFilter.h:41
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::NumericTraits
Define additional traits for native types such as int or float.
Definition: itkNumericTraits.h:58
itk::DiscreteGaussianImageFilter::RealOutputPixelType
typename NumericTraits< OutputPixelType >::RealType RealOutputPixelType
Definition: itkDiscreteGaussianImageFilter.h:100
itk::DiscreteGaussianImageFilter::OutputInternalPixelType
typename TOutputImage::InternalPixelType OutputInternalPixelType
Definition: itkDiscreteGaussianImageFilter.h:87
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::GPUDiscreteGaussianImageFilter::m_IntermediateFilters
std::vector< typename IntermediateFilterType::Pointer > m_IntermediateFilters
Definition: itkGPUDiscreteGaussianImageFilter.h:119
itk::GPUDiscreteGaussianImageFilter::m_FirstFilter
FirstFilterType::Pointer m_FirstFilter
Definition: itkGPUDiscreteGaussianImageFilter.h:117
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:86
itk::DiscreteGaussianImageFilter::RealOutputPixelValueType
typename NumericTraits< RealOutputPixelType >::ValueType RealOutputPixelValueType
Definition: itkDiscreteGaussianImageFilter.h:102
itk::GPUDiscreteGaussianImageFilter
Blurs an image by separable convolution with discrete gaussian kernels. This filter performs Gaussian...
Definition: itkGPUDiscreteGaussianImageFilter.h:51
itk::GPUDiscreteGaussianImageFilter::m_SingleFilter
SingleFilterType::Pointer m_SingleFilter
Definition: itkGPUDiscreteGaussianImageFilter.h:120
itkGPUNeighborhoodOperatorImageFilter.h
itkDiscreteGaussianImageFilter.h
itk::DiscreteGaussianImageFilter::InputPixelValueType
typename NumericTraits< InputPixelType >::ValueType InputPixelValueType
Definition: itkDiscreteGaussianImageFilter.h:92
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90