RTK  1.4.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  * 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 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>
37  public itk::ImageToImageFilter<TInputImage, TOutputImage>
38 {
39 public:
45 
47  typedef TInputImage InputImageType;
48  typedef TOutputImage OutputImageType;
49  typedef typename OutputImageType::Pointer OutputImagePointer;
50  typedef typename TOutputImage::RegionType OutputImageRegionType;
51 
53  itkNewMacro(Self);
54 
57 
58 protected:
60  virtual ~XRadRawToAttenuationImageFilter() ITK_OVERRIDE {}
61 
62  void BeforeThreadedGenerateData() ITK_OVERRIDE;
63 
64 #if ITK_VERSION_MAJOR<5
65  void ThreadedGenerateData( const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId ) ITK_OVERRIDE;
66 #else
67  void DynamicThreadedGenerateData( const OutputImageRegionType& outputRegionForThread) ITK_OVERRIDE;
68 #endif
69 
70 private:
71  //purposely not implemented
73  void operator=(const Self&);
74 
75  OutputImagePointer m_DarkImage;
76  OutputImagePointer m_FlatImage;
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
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
unsigned int ThreadIdType