RTK  1.4.0
Reconstruction Toolkit
rtkBoellaardScatterCorrectionImageFilter.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 rtkBoellaardScatterCorrectionImageFilter_h
20 #define rtkBoellaardScatterCorrectionImageFilter_h
21 
22 #include <itkInPlaceImageFilter.h>
23 #include "rtkConfiguration.h"
24 
25 namespace rtk
26 {
27 
39 template<class TInputImage, class TOutputImage=TInputImage>
41  public itk::InPlaceImageFilter<TInputImage, TOutputImage>
42 {
43 public:
49 
51  typedef TInputImage InputImageType;
52  typedef TOutputImage OutputImageType;
53  typedef typename OutputImageType::RegionType OutputImageRegionType;
54 
56  itkNewMacro(Self);
57 
60 
63  itkGetMacro(AirThreshold, double);
64  itkSetMacro(AirThreshold, double);
66 
70  itkGetMacro(ScatterToPrimaryRatio, double);
71  itkSetMacro(ScatterToPrimaryRatio, double);
73 
76  itkGetMacro(NonNegativityConstraintThreshold, double);
77  itkSetMacro(NonNegativityConstraintThreshold, double);
79 
80 protected:
82  virtual ~BoellaardScatterCorrectionImageFilter() ITK_OVERRIDE {}
83 
85  void EnlargeOutputRequestedRegion(itk::DataObject *itkNotUsed(output)) ITK_OVERRIDE;
86  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId ) ITK_OVERRIDE;
88 
92  unsigned int SplitRequestedRegion(unsigned int i, unsigned int num, OutputImageRegionType& splitRegion) ITK_OVERRIDE;
93  virtual int SplitRequestedRegion(int i, int num, OutputImageRegionType& splitRegion);
95 
96 private:
97  BoellaardScatterCorrectionImageFilter(const Self&); //purposely not implemented
98  void operator=(const Self&); //purposely not implemented
99 
102 
105 
108 }; // end of class
109 
110 } // end namespace rtk
111 
112 #ifndef ITK_MANUAL_INSTANTIATION
113 #include "rtkBoellaardScatterCorrectionImageFilter.hxx"
114 #endif
115 
116 #endif
unsigned int ThreadIdType
Scatter correction for cone-beam CT reconstruction.
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
#define itkSetMacro(name, type)