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  itkOverrideGetNameOfClassMacro(XRadRawToAttenuationImageFilter);
58 
59 protected:
61  ~XRadRawToAttenuationImageFilter() override = default;
62 
63  void
64  BeforeThreadedGenerateData() override;
65 
66  void
67  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
68 
69 private:
72  std::string m_DarkImageFileName;
73  std::string m_FlatImageFileName;
74 }; // end of class
75 
76 } // end namespace rtk
77 
78 #ifndef ITK_MANUAL_INSTANTIATION
79 # include "rtkXRadRawToAttenuationImageFilter.hxx"
80 #endif
81 
82 #endif
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType