ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkLUTbasedVariableI0RawToAttenuationImageFilter.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 rtkLUTbasedVariableI0RawToAttenuationImageFilter_h
20#define rtkLUTbasedVariableI0RawToAttenuationImageFilter_h
21
22#include <itkLogImageFilter.h>
23#include <itkNumericTraits.h>
26
28
29namespace rtk
30{
76
77template <class TInputImage, class TOutputImage>
79 : public LookupTableImageFilter<TInputImage, TOutputImage>
80{
81public:
82 ITK_DISALLOW_COPY_AND_MOVE(LUTbasedVariableI0RawToAttenuationImageFilter);
83
89
90 using InputImagePixelType = typename TInputImage::PixelType;
91 using OutputImagePixelType = typename TOutputImage::PixelType;
96
98 itkNewMacro(Self);
99
101 itkOverrideGetNameOfClassMacro(LUTbasedVariableI0RawToAttenuationImageFilter);
102
105 itkGetMacro(I0, double);
106 itkSetMacro(I0, double);
107
110 itkGetMacro(IDark, double);
111 itkSetMacro(IDark, double);
112
113 void
115
116protected:
119
120private:
121 double m_I0;
122 double m_IDark;
123 typename SubtractLUTFilterType::Pointer m_SubtractRampFilter;
124 typename ThresholdLUTFilterType::Pointer m_ThresholdRampFilter;
125 typename LogLUTFilterType::Pointer m_LogRampFilter;
126 typename SubtractLUTFilterType::Pointer m_SubtractLUTFilter;
127};
128} // end namespace rtk
129
130#ifndef ITK_MANUAL_INSTANTIATION
131# include "rtkLUTbasedVariableI0RawToAttenuationImageFilter.hxx"
132#endif
133
134#endif
Computes the log() of each pixel.
Implements transparent reference counting.
Pixel-wise subtraction of two images.
Set image values to a user-specified value if they are below, above, or outside threshold values.
typename itk::SubtractImageFilter< LookupTableType > SubtractLUTFilterType
typename itk::ThresholdImageFilter< LookupTableType > ThresholdLUTFilterType
typename itk::LogImageFilter< LookupTableType, LookupTableType > LogLUTFilterType
typename FunctorType::LookupTableType LookupTableType
#define itkSetMacro(name, type)