13 #ifndef MITKCONVERTT2CONCENTRATIONFUNCTOR 14 #define MITKCONVERTT2CONCENTRATIONFUNCTOR 20 template <
class TInputPixel1,
class TInputPixel2,
class TOutputpixel>
37 return !(*
this == other);
41 return (this->m_k == other.m_k && this->m_TE == other.m_TE);
44 inline TOutputpixel
operator()(
const TInputPixel1 & value,
const TInputPixel2 & baseline)
46 TOutputpixel concentration(0);
47 if(value !=0 && baseline != 0)
49 concentration = this->m_k / this->m_TE * log((
double)(value- baseline)) ;
61 #endif // MITKCONVERTT2CONCENTRATIONFUNCTOR bool operator!=(const ConvertT2ConcentrationFunctor &other) const
bool operator==(const ConvertT2ConcentrationFunctor &other) const
~ConvertT2ConcentrationFunctor()
#define MITKPHARMACOKINETICS_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
ConvertT2ConcentrationFunctor()
TOutputpixel operator()(const TInputPixel1 &value, const TInputPixel2 &baseline)
void initialize(double factor, double TE)