RTK  2.1.0
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 
62 
63 protected:
65  ~LaplacianImageFilter() override = default;
66 
68  void
69  GenerateData() override;
70 
72  void
73  GenerateOutputInformation() override;
74 
77 };
78 } // namespace rtk
79 
80 
81 #ifndef ITK_MANUAL_INSTANTIATION
82 # include "rtkLaplacianImageFilter.hxx"
83 #endif
84 
85 #endif
typename OutputImageType::Pointer OutputImagePointer
~LaplacianImageFilter() override=default
void GenerateData() override
GradientFilterType::Pointer m_Gradient
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
DivergenceFilterType::Pointer m_Divergence