19 #ifndef rtkVarianObiRawImageFilter_h 20 #define rtkVarianObiRawImageFilter_h 44 template <
class TInput,
class TOutput>
58 return !(*
this != other);
63 return (!A) ? 0. : TOutput(std::log((m_I0 - m_IDark) / (A - m_IDark)));
91 template <
class TInputImage,
class TOutputImage>
96 Function::ObiAttenuation<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
114 #ifdef itkOverrideGetNameOfClassMacro 121 itkGetMacro(I0,
double);
124 itkGetMacro(IDark,
double);
128 BeforeThreadedGenerateData()
override;
135 double m_I0{ 139000. };
136 double m_IDark{ 0. };
141 #ifndef ITK_MANUAL_INSTANTIATION 142 # include "rtkVarianObiRawImageFilter.hxx" Converts a raw value measured by the Varian OBI system to attenuation.
TOutput operator()(const TInput &A) const
bool operator==(const ObiAttenuation &other) const
#define itkSetMacro(name, type)
bool operator!=(const ObiAttenuation &) const
Converts raw images measured by the Varian OBI system to attenuation.
void SetIDark(double idark)