23#include "wx/msw/wrapwin.h"
26#include "hugin_config.h"
27#if defined HAVE_EPOXY && HAVE_EPOXY
42#define DIFFERENCE_DOUBLE 2
53#if defined HAVE_EPOXY && HAVE_EPOXY
137 if (
tex_m->GetPhotometricCorrect())
147 float viewer_exposure = 1.0 / pow(2.0,
149 float es =
static_cast<float>(viewer_exposure / img->
getExposure());
150 float scale[3] = {
static_cast<float>(
es / img->getWhiteBalanceRed()),
152 static_cast<float>(
es / img->getWhiteBalanceBlue()) };
154 while (scale[0] > 0.0 && scale[1] > 0.0 && scale[2] > 0.0)
158 scale[0] -= 1.0; scale[1] -= 1.0; scale[2] -= 1.0;
164 tex_m->DisableTexture();
double outputExposureValue
const PanoramaOptions & getOptions() const
returns the options for this panorama
All variables of a source image.
double getExposure() const
void BindTexture(unsigned int image_number)
void DrawImage(unsigned int image_number, unsigned int display_list)
HuginBase::SrcPanoImage * GetSrcImage(unsigned int image_nr)
TextureManager * GetTextureManager()
void ForceRequireRedraw()
unsigned int GetMeshDisplayList(unsigned int image_nr)
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.