RTK  2.0.1
Reconstruction Toolkit
rtkLaplacianImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright RTK 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 
19 #ifndef rtkLaplacianImageFilter_h
20 #define rtkLaplacianImageFilter_h
21 
24 
25 namespace rtk
26 {
27 
40 template< typename OutputImageType, typename GradientImageType>
41 class LaplacianImageFilter : public itk::ImageToImageFilter< OutputImageType, OutputImageType>
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_ASSIGN(LaplacianImageFilter);
45 
50  using OutputImagePointer = typename OutputImageType::Pointer;
52  typename OutputImageType::ValueType,
53  typename OutputImageType::ValueType,
54  GradientImageType>;
56 
58  itkNewMacro(Self)
59 
60 
62 
63 protected:
64  LaplacianImageFilter();
65  ~LaplacianImageFilter() override = default;
66 
68  void GenerateData() override;
69 
71  void GenerateOutputInformation() override;
72 
73  typename GradientFilterType::Pointer m_Gradient;
74  typename DivergenceFilterType::Pointer m_Divergence;
75 
76 };
77 } //namespace RTK
78 
79 
80 #ifndef ITK_MANUAL_INSTANTIATION
81 #include "rtkLaplacianImageFilter.hxx"
82 #endif
83 
84 #endif
typename OutputImageType::Pointer OutputImagePointer
void GenerateData() override
Computes the gradient of an image using forward difference.
virtual void GenerateOutputInformation()
Computes the backward differences divergence (adjoint of the forward differences gradient) of the inp...
TOutputImage OutputImageType