RTK  2.6.0
Reconstruction Toolkit
rtkElektaSynergyLookupTableImageFilter.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 rtkElektaSynergyLookupTableImageFilter_h
20 #define rtkElektaSynergyLookupTableImageFilter_h
21 
23 #include <itkNumericTraits.h>
24 
25 namespace rtk
26 {
27 
41 template <class TOutputImage>
42 class ITK_TEMPLATE_EXPORT ElektaSynergyLookupTableImageFilter
43  : public LookupTableImageFilter<itk::Image<unsigned short, TOutputImage::ImageDimension>, TOutputImage>
44 {
45 public:
46  ITK_DISALLOW_COPY_AND_MOVE(ElektaSynergyLookupTableImageFilter);
47 
53 
54  using InputImagePixelType = unsigned short;
55  using OutputImagePixelType = typename TOutputImage::PixelType;
56  using LookupTableType = typename Superclass::FunctorType::LookupTableType;
57 
59  itkNewMacro(Self);
60 
62 #ifdef itkOverrideGetNameOfClassMacro
63  itkOverrideGetNameOfClassMacro(ElektaSynergyLookupTableImageFilter);
64 #else
66 #endif
67 
68 
69 protected:
71  ~ElektaSynergyLookupTableImageFilter() override = default;
72 };
73 
74 } // end namespace rtk
75 
76 #ifndef ITK_MANUAL_INSTANTIATION
77 # include "rtkElektaSynergyLookupTableImageFilter.hxx"
78 #endif
79 
80 #endif
typename Superclass::FunctorType::LookupTableType LookupTableType
Function to do the lookup operation.
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType