RTK  2.0.1
Reconstruction Toolkit
rtkOraLookupTableImageFilter.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 rtkOraLookupTableImageFilter_h
20 #define rtkOraLookupTableImageFilter_h
21 
23 #include <itkNumericTraits.h>
24 
25 namespace rtk
26 {
27 
41 template <class TOutputImage>
42 class ITK_EXPORT OraLookupTableImageFilter:
43  public LookupTableImageFilter< itk::Image<unsigned short, TOutputImage::ImageDimension>,
44  TOutputImage >
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_ASSIGN(OraLookupTableImageFilter);
48 
51  using Superclass = LookupTableImageFilter<itk::Image<unsigned short,
52  TOutputImage::ImageDimension>,
53  TOutputImage>;
56 
57  using InputImagePixelType = unsigned short;
58  using OutputImagePixelType = typename TOutputImage::PixelType;
60  using FileNamesContainer = std::vector<std::string>;
61 
63  itkNewMacro(Self);
64 
67 
68  void BeforeThreadedGenerateData() override;
69 
72  itkSetMacro(ComputeLineIntegral, bool);
73  itkGetConstMacro(ComputeLineIntegral, bool);
74  itkBooleanMacro(ComputeLineIntegral);
76 
79  void SetFileNames (const FileNamesContainer &name)
80  {
81  if ( m_FileNames != name)
82  {
83  m_FileNames = name;
84  this->Modified();
85  }
86  }
88  {
89  return m_FileNames;
90  }
92 
93 protected:
95  ~OraLookupTableImageFilter() override = default;
96 
97 private:
98  bool m_ComputeLineIntegral{true};
99 
102 };
103 
104 } // end namespace rtk
105 
106 #ifndef ITK_MANUAL_INSTANTIATION
107 #include "rtkOraLookupTableImageFilter.hxx"
108 #endif
109 
110 #endif
typename Superclass::FunctorType::LookupTableType LookupTableType
typename TOutputImage::PixelType OutputImagePixelType
Function to do the lookup operation.
std::vector< std::string > FileNamesContainer
void SetFileNames(const FileNamesContainer &name)
const FileNamesContainer & GetFileNames() const
#define itkSetMacro(name, type)