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  itkOverrideGetNameOfClassMacro(SeparableQuadraticSurrogateRegularizationImageFilter);
60 
62  itkSetMacro(Radius, typename TImage::RegionType::SizeType);
63  itkGetMacro(Radius, typename TImage::RegionType::SizeType);
65 
67  itkSetMacro(RegularizationWeights, typename TImage::PixelType);
68  itkGetMacro(RegularizationWeights, typename TImage::PixelType);
70 
71 protected:
74 
79  MakeOutput(const itk::ProcessObject::DataObjectIdentifierType &) override;
81 
83  void
84  DynamicThreadedGenerateData(const typename TImage::RegionType & outputRegionForThread) override;
85  void
86  GenerateInputRequestedRegion() override;
88 
90  typename TImage::PixelType
91  GreenPriorFirstDerivative(typename TImage::PixelType pix);
92  typename TImage::PixelType
93  GreenPriorSecondDerivative(typename TImage::PixelType pix);
95 
97  typename TImage::RegionType::SizeType m_Radius;
100  typename TImage::PixelType m_RegularizationWeights;
101 };
102 } // namespace rtk
103 
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 # include "rtkSeparableQuadraticSurrogateRegularizationImageFilter.hxx"
107 #endif
108 
109 #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 ...