RTK  1.4.0
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 
47 public:
50  typedef LookupTableImageFilter<itk::Image<unsigned short,
51  TOutputImage::ImageDimension>,
52  TOutputImage> Superclass;
55 
56  typedef unsigned short InputImagePixelType;
57  typedef typename TOutputImage::PixelType OutputImagePixelType;
59  typedef std::vector<std::string> FileNamesContainer;
60 
62  itkNewMacro(Self);
63 
66 
67  void BeforeThreadedGenerateData() ITK_OVERRIDE;
68 
71  itkSetMacro(ComputeLineIntegral, bool);
72  itkGetConstMacro(ComputeLineIntegral, bool);
73  itkBooleanMacro(ComputeLineIntegral);
75 
78  void SetFileNames (const FileNamesContainer &name)
79  {
80  if ( m_FileNames != name)
81  {
82  m_FileNames = name;
83  this->Modified();
84  }
85  }
86  const FileNamesContainer & GetFileNames() const
87  {
88  return m_FileNames;
89  }
91 
92 protected:
93  OraLookupTableImageFilter(): m_ComputeLineIntegral(true){}
94  virtual ~OraLookupTableImageFilter() ITK_OVERRIDE {}
95 
96 private:
97  OraLookupTableImageFilter(const Self&); //purposely not implemented
98  void operator=(const Self&); //purposely not implemented
99 
101 
103  FileNamesContainer m_FileNames;
104 };
105 
106 } // end namespace rtk
107 
108 #ifndef ITK_MANUAL_INSTANTIATION
109 #include "rtkOraLookupTableImageFilter.hxx"
110 #endif
111 
112 #endif
Function to do the lookup operation.
itk::SmartPointer< const Self > ConstPointer
LookupTableImageFilter< itk::Image< unsigned short, TOutputImage::ImageDimension >, TOutputImage > Superclass
Superclass::FunctorType::LookupTableType LookupTableType
const FileNamesContainer & GetFileNames() const
std::vector< std::string > FileNamesContainer
#define itkSetMacro(name, type)