Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
HuginBase::Photometric::ResponseTransform< VTIn > Class Template Reference

radiometric transformation, includes exposure, vignetting and white balance. More...

#include <ResponseTransform.h>

Inheritance diagram for HuginBase::Photometric::ResponseTransform< VTIn >:
Inheritance graph

Public Types

typedef
vigra_ext::ValueTypeTraits
< VTIn >::value_type 
VT1
 
typedef std::vector< double > LUT
 

Public Member Functions

 ResponseTransform ()
 
 ResponseTransform (const HuginBase::SrcPanoImage &src)
 
virtual ~ResponseTransform ()
 
void setFlatfield (const vigra::FImage *flat)
 
double calcVigFactor (hugin_utils::FDiff2D d) const
 
void enforceMonotonicity ()
 
vigra::NumericTraits< VT1 >
::RealPromote 
apply (VT1 v, const hugin_utils::FDiff2D &pos, vigra::VigraTrueType) const
 function for gray values (ignores white balance :-) More...
 
vigra::NumericTraits< VT1 >
::RealPromote 
apply (VT1 v, const hugin_utils::FDiff2D &pos) const
 function for color values More...
 
vigra::NumericTraits
< vigra::RGBValue< VT1 >
>::RealPromote 
apply (vigra::RGBValue< VT1 > v, const hugin_utils::FDiff2D &pos, vigra::VigraFalseType) const
 function for color values More...
 
vigra::NumericTraits
< vigra::RGBValue< VT1 >
>::RealPromote 
apply (vigra::RGBValue< VT1 > v, const hugin_utils::FDiff2D &pos) const
 function for color values More...
 
template<class T >
vigra::NumericTraits< T >
::RealPromote 
operator() (T v, const hugin_utils::FDiff2D &pos) const
 deprecated More...
 

Public Attributes

LUT m_lutR
 
double m_radiusScale
 
vigra_ext::LUTFunctor< VT1, LUTm_lutRFunc
 
const vigra::FImage * m_flatfield
 
double m_srcExposure
 
std::vector< double > m_RadialVigCorrCoeff
 
hugin_utils::FDiff2D m_RadialVigCorrCenter
 
int m_VigCorrMode
 
double m_WhiteBalanceRed
 
double m_WhiteBalanceBlue
 
HuginBase::SrcPanoImage m_src
 

Private Member Functions

void initWithSrcImg (const HuginBase::SrcPanoImage &src)
 

Detailed Description

template<class VTIn>
class HuginBase::Photometric::ResponseTransform< VTIn >

radiometric transformation, includes exposure, vignetting and white balance.

scene referred irradiance -> camera color values

Definition at line 51 of file ResponseTransform.h.

Member Typedef Documentation

template<class VTIn>
typedef std::vector<double> HuginBase::Photometric::ResponseTransform< VTIn >::LUT

Definition at line 59 of file ResponseTransform.h.

template<class VTIn>
typedef vigra_ext::ValueTypeTraits<VTIn>::value_type HuginBase::Photometric::ResponseTransform< VTIn >::VT1

Definition at line 56 of file ResponseTransform.h.

Constructor & Destructor Documentation

Definition at line 270 of file ResponseTransform.h.

Definition at line 277 of file ResponseTransform.h.

template<class VTIn>
virtual HuginBase::Photometric::ResponseTransform< VTIn >::~ResponseTransform ( )
inlinevirtual

Definition at line 70 of file ResponseTransform.h.

Member Function Documentation

template<class VTIn>
vigra::NumericTraits<VT1>::RealPromote HuginBase::Photometric::ResponseTransform< VTIn >::apply ( VT1  v,
const hugin_utils::FDiff2D pos,
vigra::VigraTrueType   
) const

function for gray values (ignores white balance :-)

Referenced by HuginBase::Photometric::ResponseTransform< VTIn >::operator()().

template<class VTIn>
vigra::NumericTraits<VT1>::RealPromote HuginBase::Photometric::ResponseTransform< VTIn >::apply ( VT1  v,
const hugin_utils::FDiff2D pos 
) const

function for color values

template<class VTIn>
vigra::NumericTraits<vigra::RGBValue<VT1> >::RealPromote HuginBase::Photometric::ResponseTransform< VTIn >::apply ( vigra::RGBValue< VT1 v,
const hugin_utils::FDiff2D pos,
vigra::VigraFalseType   
) const

function for color values

template<class VTIn>
vigra::NumericTraits<vigra::RGBValue<VT1> >::RealPromote HuginBase::Photometric::ResponseTransform< VTIn >::apply ( vigra::RGBValue< VT1 v,
const hugin_utils::FDiff2D pos 
) const

function for color values

template<class VTIn >
double HuginBase::Photometric::ResponseTransform< VTIn >::calcVigFactor ( hugin_utils::FDiff2D  d) const
template<class VTIn>
void HuginBase::Photometric::ResponseTransform< VTIn >::enforceMonotonicity ( )
inline
template<class VTIn >
void HuginBase::Photometric::ResponseTransform< VTIn >::initWithSrcImg ( const HuginBase::SrcPanoImage src)
private
template<class VTIn>
template<class T >
vigra::NumericTraits<T>::RealPromote HuginBase::Photometric::ResponseTransform< VTIn >::operator() ( v,
const hugin_utils::FDiff2D pos 
) const
inline

deprecated

Definition at line 110 of file ResponseTransform.h.

References HuginBase::Photometric::ResponseTransform< VTIn >::apply().

template<class VTIn>
void HuginBase::Photometric::ResponseTransform< VTIn >::setFlatfield ( const vigra::FImage *  flat)
inline

Member Data Documentation

template<class VTIn>
const vigra::FImage* HuginBase::Photometric::ResponseTransform< VTIn >::m_flatfield
template<class VTIn>
LUT HuginBase::Photometric::ResponseTransform< VTIn >::m_lutR
template<class VTIn>
vigra_ext::LUTFunctor<VT1, LUT> HuginBase::Photometric::ResponseTransform< VTIn >::m_lutRFunc

Definition at line 118 of file ResponseTransform.h.

template<class VTIn>
hugin_utils::FDiff2D HuginBase::Photometric::ResponseTransform< VTIn >::m_RadialVigCorrCenter

Definition at line 122 of file ResponseTransform.h.

template<class VTIn>
std::vector<double> HuginBase::Photometric::ResponseTransform< VTIn >::m_RadialVigCorrCoeff

Definition at line 121 of file ResponseTransform.h.

template<class VTIn>
double HuginBase::Photometric::ResponseTransform< VTIn >::m_radiusScale

Definition at line 117 of file ResponseTransform.h.

Definition at line 127 of file ResponseTransform.h.

template<class VTIn>
double HuginBase::Photometric::ResponseTransform< VTIn >::m_srcExposure

Definition at line 120 of file ResponseTransform.h.

template<class VTIn>
int HuginBase::Photometric::ResponseTransform< VTIn >::m_VigCorrMode

Definition at line 123 of file ResponseTransform.h.

template<class VTIn>
double HuginBase::Photometric::ResponseTransform< VTIn >::m_WhiteBalanceBlue

Definition at line 125 of file ResponseTransform.h.

template<class VTIn>
double HuginBase::Photometric::ResponseTransform< VTIn >::m_WhiteBalanceRed

Definition at line 124 of file ResponseTransform.h.


The documentation for this class was generated from the following file: