46 for (
size_t i = 0;
i < pano.getNrOfImages();
i++)
48 const std::string filename = pano.getImage(
i).getFilename();
49 std::ifstream f(filename.c_str());
52 throw std::runtime_error(
"cannot open image file: " + filename);
64 const int nPoints = 200 *
static_cast<int>(pano.
getNrOfImages());
65 std::vector<vigra_ext::PointPairRGB>
points;
71 throw std::runtime_error(
"no overlapping points found for photometric optimization");
78 ImageVariableGroup::IVE_EMoRParams,
79 ImageVariableGroup::IVE_ResponseType,
80 ImageVariableGroup::IVE_VigCorrMode,
81 ImageVariableGroup::IVE_RadialVigCorrCoeff,
82 ImageVariableGroup::IVE_RadialVigCorrCenterShift
86 for (
size_t i = 0;
i <
lenses.getNumberOfParts();
i++)
90 if (!
lenses.getVarLinkedInPart(var,
i))
Declare the ImageVariableGroup and ImageVariableGroupObserver classes.
Somewhere to specify what variables belong to what.
Dummy progress display, without output.
static double calcMeanExposure(const PanoramaData &pano)
Same as above, but use a non const panorama.
void linkVariablePart(ImageVariableEnum variable, unsigned int partNr)
link one of the variables across a given part
double outputExposureValue
const PanoramaOptions & getOptions() const
returns the options for this panorama
void setOptions(const PanoramaOptions &opt)
set new output settings This is not used directly for optimizing/stiching, but it can be feed into ru...
const OptimizeVector & getOptimizeVector() const
return the optimize settings stored inside panorama
std::size_t getNrOfImages() const
number of images.
PhotometricOptimizeMode
local optimize definition.
run photometric optimization on a Panorama, for the hsi Python module
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
double RunPhotometricOptimizer(Panorama &pano)
Loads pano's source images from disk, samples corresponding points across overlapping images and runs...
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.