RTK  2.6.0
Reconstruction Toolkit
rtkSeparableQuadraticSurrogateRegularizationImageFilter.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  * https://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 rtkSeparableQuadraticSurrogateRegularizationImageFilter_h
20 #define rtkSeparableQuadraticSurrogateRegularizationImageFilter_h
21 
23 #include <itkImageRegionIterator.h>
24 #include <itkImageToImageFilter.h>
25 
26 namespace rtk
27 {
28 
43 template <typename TImage>
45  : public itk::ImageToImageFilter<TImage, TImage>
46 {
47 public:
48  ITK_DISALLOW_COPY_AND_MOVE(SeparableQuadraticSurrogateRegularizationImageFilter);
49 
54 
56  itkNewMacro(Self);
57 
59 #ifdef itkOverrideGetNameOfClassMacro
60  itkOverrideGetNameOfClassMacro(SeparableQuadraticSurrogateRegularizationImageFilter);
61 #else
63 #endif
64 
65 
67  itkSetMacro(Radius, typename TImage::RegionType::SizeType);
68  itkGetMacro(Radius, typename TImage::RegionType::SizeType);
70 
72  itkSetMacro(RegularizationWeights, typename TImage::PixelType);
73  itkGetMacro(RegularizationWeights, typename TImage::PixelType);
75 
76 protected:
79 
84  MakeOutput(const itk::ProcessObject::DataObjectIdentifierType &) override;
86 
88  void
89  DynamicThreadedGenerateData(const typename TImage::RegionType & outputRegionForThread) override;
90  void
91  GenerateInputRequestedRegion() override;
93 
95  typename TImage::PixelType
96  GreenPriorFirstDerivative(typename TImage::PixelType pix);
97  typename TImage::PixelType
98  GreenPriorSecondDerivative(typename TImage::PixelType pix);
100 
102  typename TImage::RegionType::SizeType m_Radius;
105  typename TImage::PixelType m_RegularizationWeights;
106 };
107 } // namespace rtk
108 
109 
110 #ifndef ITK_MANUAL_INSTANTIATION
111 # include "rtkSeparableQuadraticSurrogateRegularizationImageFilter.hxx"
112 #endif
113 
114 #endif
DataObject::DataObjectIdentifierType DataObjectIdentifierType
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
typename TPixelType::ValueType ValueType
#define itkSetMacro(name, type)
For one-step inversion of spectral CT data by the method Mechlem2017, computes regularization term&#39;s ...