27 #include "wx/msw/wrapwin.h"
35 #include <vigra/copyimage.hxx>
36 #include <vigra/inspectimage.hxx>
39 #define ColorPickerSize 10
45 helper->
SetStatusMessage(_(
"Click on a area which should be neutral gray / white in the final panorama."));
72 if(!activeImages.empty())
74 for(HuginBase::UIntSet::iterator it=activeImages.begin();it!=activeImages.end();++it)
83 vigra::Point2D imagePos(x,y);
112 vigra::BRGBImage::Accessor()),
120 std::vector<double> outLut;
130 vigra::DRGBImage floatTemp(tempImage.size());
134 vigra::FindAverage<vigra::DRGBImage::PixelType> average;
137 vigra::RGBValue<double> RGBaverage=average.average();
138 if(RGBaverage[0]>2 && RGBaverage[0]<253 &&
139 RGBaverage[1]>2 && RGBaverage[1]<253 &&
140 RGBaverage[2]>2 && RGBaverage[2]<253)
142 m_red+=RGBaverage[0]/RGBaverage[1];
143 m_blue+=RGBaverage[2]/RGBaverage[1];
void transformImageSpatial(SrcImageIterator src_upperleft, SrcImageIterator src_lowerright, SrcAccessor sa, DestImageIterator dest_upperleft, DestAccessor da, Functor const &f, vigra::Diff2D ul)
void enforceMonotonicity(LUT &lut)
enforce monotonicity of an array (mostly used for lookup tables)
bool isInside(vigra::Point2D p, bool ignoreMasks=false) const
check if a coordinate is inside the source image
static ImageCache & getInstance()
get the global ImageCache object
std::set< unsigned int > UIntSet
std::shared_ptr< vigra::BRGBImage > ImageCacheRGB8Ptr
use reference counted pointers
float pow(float a, double b)
vigra::pair< typename ROIImage< Image, Alpha >::image_traverser, typename ROIImage< Image, Alpha >::ImageAccessor > destImage(ROIImage< Image, Alpha > &img)
vigra::triple< typename ROIImage< Image, Mask >::image_const_traverser, typename ROIImage< Image, Mask >::image_const_traverser, typename ROIImage< Image, Mask >::ImageConstAccessor > srcImageRange(const ROIImage< Image, Mask > &img)
helper function for ROIImages
UIntSet getActiveImages() const
get active images
void createEMoRLUT(const std::vector< float > ¶ms, VECTOR &lut)
EntryPtr getImage(const std::string &filename)
get a image.
const PanoramaOptions & getOptions() const
returns the options for this panorama
void copyImage(SrcImageIterator src_upperleft, SrcImageIterator src_lowerright, SrcAccessor src_acc, DestImageIterator dest_upperleft, DestAccessor dest_acc)
const SrcPanoImage & getImage(std::size_t nr) const
get a panorama image, counting starts with 0
All variables of a source image.
void UpdateGlobalWhiteBalance(double redFactor, double blueFactor)
updates the global white balance
double outputExposureValue