Hugintrunk
0.1
|
radiometric transformation, includes exposure, vignetting and white balance. More...
#include <ResponseTransform.h>
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, LUT > | m_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) |
radiometric transformation, includes exposure, vignetting and white balance.
scene referred irradiance -> camera color values
Definition at line 51 of file ResponseTransform.h.
typedef std::vector<double> HuginBase::Photometric::ResponseTransform< VTIn >::LUT |
Definition at line 59 of file ResponseTransform.h.
typedef vigra_ext::ValueTypeTraits<VTIn>::value_type HuginBase::Photometric::ResponseTransform< VTIn >::VT1 |
Definition at line 56 of file ResponseTransform.h.
HuginBase::Photometric::ResponseTransform< VTIn >::ResponseTransform | ( | ) |
Definition at line 270 of file ResponseTransform.h.
HuginBase::Photometric::ResponseTransform< VTIn >::ResponseTransform | ( | const HuginBase::SrcPanoImage & | src | ) |
Definition at line 277 of file ResponseTransform.h.
|
inlinevirtual |
Definition at line 70 of file ResponseTransform.h.
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()().
vigra::NumericTraits<VT1>::RealPromote HuginBase::Photometric::ResponseTransform< VTIn >::apply | ( | VT1 | v, |
const hugin_utils::FDiff2D & | pos | ||
) | const |
function for color values
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
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
double HuginBase::Photometric::ResponseTransform< VTIn >::calcVigFactor | ( | hugin_utils::FDiff2D | d | ) | const |
Definition at line 340 of file ResponseTransform.h.
References celeste::max(), celeste::min(), hugin_utils::roundi(), HuginBase::BaseSrcPanoImage::VIGCORR_FLATFIELD, HuginBase::BaseSrcPanoImage::VIGCORR_RADIAL, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by HuginBase::IsHighVignetting().
|
inline |
Definition at line 85 of file ResponseTransform.h.
References vigra_ext::enforceMonotonicity(), and HuginBase::Photometric::ResponseTransform< VTIn >::m_lutR.
Referenced by ImageVariableDialog::OnShowVignettingGraph().
|
private |
Definition at line 284 of file ResponseTransform.h.
References vigra_ext::EMoR::createEMoRLUT(), vigra_ext::createGammaLUT(), celeste::max(), vigra_ext::resizeLUT(), HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, HuginBase::BaseSrcPanoImage::RESPONSE_GAMMA, and HuginBase::BaseSrcPanoImage::RESPONSE_LINEAR.
|
inline |
deprecated
Definition at line 110 of file ResponseTransform.h.
References HuginBase::Photometric::ResponseTransform< VTIn >::apply().
|
inline |
Definition at line 79 of file ResponseTransform.h.
References HuginBase::Photometric::ResponseTransform< VTIn >::m_flatfield.
Referenced by correctImage().
const vigra::FImage* HuginBase::Photometric::ResponseTransform< VTIn >::m_flatfield |
Definition at line 119 of file ResponseTransform.h.
Referenced by HuginBase::Photometric::ResponseTransform< VTIn >::setFlatfield().
LUT HuginBase::Photometric::ResponseTransform< VTIn >::m_lutR |
Definition at line 116 of file ResponseTransform.h.
Referenced by HuginBase::Photometric::ResponseTransform< VTIn >::enforceMonotonicity(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::enforceMonotonicity(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::invertLUT(), and HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::InvResponseTransform().
vigra_ext::LUTFunctor<VT1, LUT> HuginBase::Photometric::ResponseTransform< VTIn >::m_lutRFunc |
Definition at line 118 of file ResponseTransform.h.
hugin_utils::FDiff2D HuginBase::Photometric::ResponseTransform< VTIn >::m_RadialVigCorrCenter |
Definition at line 122 of file ResponseTransform.h.
std::vector<double> HuginBase::Photometric::ResponseTransform< VTIn >::m_RadialVigCorrCoeff |
Definition at line 121 of file ResponseTransform.h.
double HuginBase::Photometric::ResponseTransform< VTIn >::m_radiusScale |
Definition at line 117 of file ResponseTransform.h.
HuginBase::SrcPanoImage HuginBase::Photometric::ResponseTransform< VTIn >::m_src |
Definition at line 127 of file ResponseTransform.h.
double HuginBase::Photometric::ResponseTransform< VTIn >::m_srcExposure |
Definition at line 120 of file ResponseTransform.h.
int HuginBase::Photometric::ResponseTransform< VTIn >::m_VigCorrMode |
Definition at line 123 of file ResponseTransform.h.
double HuginBase::Photometric::ResponseTransform< VTIn >::m_WhiteBalanceBlue |
Definition at line 125 of file ResponseTransform.h.
double HuginBase::Photometric::ResponseTransform< VTIn >::m_WhiteBalanceRed |
Definition at line 124 of file ResponseTransform.h.