RTK  2.6.0
Reconstruction Toolkit
rtkXRadRawToAttenuationImageFilter.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 rtkXRadRawToAttenuationImageFilter_h
20 #define rtkXRadRawToAttenuationImageFilter_h
21 
22 #include <itkImageToImageFilter.h>
23 #include "rtkConfiguration.h"
24 
32 namespace rtk
33 {
34 
35 template <class TInputImage, class TOutputImage = TInputImage>
36 class ITK_TEMPLATE_EXPORT XRadRawToAttenuationImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
37 {
38 public:
39  ITK_DISALLOW_COPY_AND_MOVE(XRadRawToAttenuationImageFilter);
40 
46 
48  using InputImageType = TInputImage;
49  using OutputImageType = TOutputImage;
50  using OutputImagePointer = typename OutputImageType::Pointer;
51  using OutputImageRegionType = typename TOutputImage::RegionType;
52 
54  itkNewMacro(Self);
55 
57 #ifdef itkOverrideGetNameOfClassMacro
58  itkOverrideGetNameOfClassMacro(XRadRawToAttenuationImageFilter);
59 #else
61 #endif
62 
63 
64 protected:
66  ~XRadRawToAttenuationImageFilter() override = default;
67 
68  void
69  BeforeThreadedGenerateData() override;
70 
71  void
72  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
73 
74 private:
77  std::string m_DarkImageFileName;
78  std::string m_FlatImageFileName;
79 }; // end of class
80 
81 } // end namespace rtk
82 
83 #ifndef ITK_MANUAL_INSTANTIATION
84 # include "rtkXRadRawToAttenuationImageFilter.hxx"
85 #endif
86 
87 #endif
typename OutputImageType::Pointer OutputImagePointer
TInputImage InputImageType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType