From: <hug...@li...> - 2011-02-24 19:26:22
|
branch: details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgrepo/h/hu/hugin/hugin/rev/6d6750825284 changeset: 4977:6d6750825284 user: tmodes date: Thu Feb 24 20:25:47 2011 +0100 description: Make output emor parameters consistant for fast preview window diffstat: src/hugin1/hugin/TextureManager.cpp | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diffs (17 lines): diff -r f5f9d968033e -r 6d6750825284 src/hugin1/hugin/TextureManager.cpp --- a/src/hugin1/hugin/TextureManager.cpp Thu Feb 24 20:11:05 2011 +0100 +++ b/src/hugin1/hugin/TextureManager.cpp Thu Feb 24 20:25:47 2011 +0100 @@ -786,7 +786,12 @@ // if (m_destImg.outputMode == PanoramaOptions::OUTPUT_LDR) { // select exposure and response curve for LDR output std::vector<double> outLut; - vigra_ext::EMoR::createEMoRLUT(dest_img.outputEMoRParams, outLut); + // @TODO better handling of output EMoR parameters + // Hugins stitcher is currently using the EMoR parameters of the first image + // as so called output EMoR parameter, so enforce this also for the fast + // preview window + // vigra_ext::EMoR::createEMoRLUT(dest_img.outputEMoRParams, outLut); + vigra_ext::EMoR::createEMoRLUT(m_viewState->GetSrcImage(0)->getEMoRParams(), outLut); vigra_ext::enforceMonotonicity(outLut); invResponse.setOutput(1.0/pow(2.0,dest_img.outputExposureValue), outLut, 255.0); |