RTK  1.4.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 
49  typedef typename OutputImageType::Pointer OutputImagePointer;
51  typename OutputImageType::ValueType,
52  typename OutputImageType::ValueType,
53  GradientImageType> GradientFilterType;
55 
57  itkNewMacro(Self)
58 
59 
61 
62 protected:
63  LaplacianImageFilter();
64  virtual ~LaplacianImageFilter() ITK_OVERRIDE {}
65 
67  void GenerateData() ITK_OVERRIDE;
68 
70  void GenerateOutputInformation() ITK_OVERRIDE;
71 
74 
75 private:
76  LaplacianImageFilter(const Self &); //purposely not implemented
77  void operator=(const Self &); //purposely not implemented
78 
79 };
80 } //namespace RTK
81 
82 
83 #ifndef ITK_MANUAL_INSTANTIATION
84 #include "rtkLaplacianImageFilter.hxx"
85 #endif
86 
87 #endif
itk::SmartPointer< Self > Pointer
void operator=(const Self &)
void GenerateOutputInformation() override
rtk::ForwardDifferenceGradientImageFilter< OutputImageType, typename OutputImageType::ValueType, typename OutputImageType::ValueType, GradientImageType > GradientFilterType
void GenerateData() override
GradientFilterType::Pointer m_Gradient
OutputImageType::Pointer OutputImagePointer
Computes the gradient of an image using forward difference.
rtk::BackwardDifferenceDivergenceImageFilter< GradientImageType, OutputImageType > DivergenceFilterType
Computes the backward differences divergence (adjoint of the forward differences gradient) of the inp...
TOutputImage OutputImageType
itk::ImageToImageFilter< OutputImageType, OutputImageType > Superclass
DivergenceFilterType::Pointer m_Divergence