Hugintrunk
0.1
|
#include <PhotometricOptimizer.h>
Classes | |
struct | OptimData |
struct | VarMapping |
Public Types | |
typedef std::vector < vigra_ext::PointPairRGB > | PointPairs |
Public Member Functions | |
PhotometricOptimizer (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay, const OptimizeVector &vars, const PointPairs &correspondences, const float imageStepSize) | |
virtual | ~PhotometricOptimizer () |
virtual bool | modifiesPanoramaData () const |
returns true if the algorithm changes the PanoramaData. More... | |
virtual bool | runAlgorithm () |
implementation of the algorithm. More... | |
double | getResultError () const |
Public Member Functions inherited from HuginBase::TimeConsumingPanoramaAlgorithm | |
virtual | ~TimeConsumingPanoramaAlgorithm () |
virtual bool | wasCancelled () const |
Public Member Functions inherited from HuginBase::PanoramaAlgorithm | |
virtual | ~PanoramaAlgorithm () |
virtual bool | hasRunSuccessfully () |
virtual void | run () |
runs the algorithm. More... | |
Static Public Member Functions | |
static void | optimizePhotometric (PanoramaData &pano, const OptimizeVector &vars, const PointPairs &correspondences, const float imageStepSize, AppBase::ProgressDisplay *progress, double &error) |
Static Protected Member Functions | |
static int | photometricVis (double *p, double *x, int m, int n, int iter, double sqerror, void *data) |
static void | photometricError (double *p, double *x, int m, int n, void *data) |
Protected Attributes | |
const OptimizeVector & | o_vars |
const PointPairs & | o_correspondences |
const float | o_imageStepSize |
double | o_resultError |
Protected Attributes inherited from HuginBase::PanoramaAlgorithm | |
PanoramaData & | o_panorama |
bool | o_successful |
Additional Inherited Members | |
Protected Member Functions inherited from HuginBase::TimeConsumingPanoramaAlgorithm | |
TimeConsumingPanoramaAlgorithm (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay=NULL) | |
[Warning! it keeps the reference to the panorama data!] More... | |
virtual AppBase::ProgressDisplay * | getProgressDisplay () const |
virtual bool | hasProgressDisplay () const |
virtual void | cancelAlgorithm () |
Call this when the algorithm is cancelled. More... | |
virtual void | algorithmCancelled () |
Called when the algorithm got cancelled; override with cleaning up process etc. More... | |
Protected Member Functions inherited from HuginBase::PanoramaAlgorithm | |
PanoramaAlgorithm (PanoramaData &panorama) | |
Definition at line 39 of file PhotometricOptimizer.h.
typedef std::vector<vigra_ext::PointPairRGB> HuginBase::PhotometricOptimizer::PointPairs |
Definition at line 44 of file PhotometricOptimizer.h.
|
inline |
Definition at line 47 of file PhotometricOptimizer.h.
|
inlinevirtual |
Definition at line 55 of file PhotometricOptimizer.h.
|
inline |
Definition at line 119 of file PhotometricOptimizer.h.
|
inlinevirtual |
returns true if the algorithm changes the PanoramaData.
Implements HuginBase::PanoramaAlgorithm.
Definition at line 111 of file PhotometricOptimizer.h.
|
static |
Definition at line 278 of file PhotometricOptimizer.cpp.
References data, HuginBase::PhotometricOptimizer::OptimData::FromX(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::PhotometricOptimizer::OptimData::huberSigma, celeste::info(), HuginBase::PhotometricOptimizer::OptimData::m_imgs, HuginBase::PhotometricOptimizer::OptimData::m_vars, photometricError(), photometricVis(), vigra_ext::pow(), HuginBase::PanoramaData::setSrcImage(), and HuginBase::PhotometricOptimizer::OptimData::ToX().
Referenced by runAlgorithm(), OptimizePhotometricPanel::runOptimizer(), and HuginBase::SmartPhotometricOptimizer::smartOptimizePhotometric().
|
staticprotected |
Definition at line 152 of file PhotometricOptimizer.cpp.
References data, DEBUG_DEBUG, HuginBase::PhotometricOptimizer::OptimData::FromX(), HuginBase::PanoramaData::getActiveImages(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::PanoramaData::getOptions(), HuginBase::PhotometricOptimizer::OptimData::huberSigma, vigra_ext::log(), HuginBase::PhotometricOptimizer::OptimData::m_data, HuginBase::PhotometricOptimizer::OptimData::m_imgs, HuginBase::PhotometricOptimizer::OptimData::m_pano, HuginBase::PanoramaData::printPanoramaScript(), HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, and HuginBase::weightHuber().
Referenced by optimizePhotometric().
|
staticprotected |
Definition at line 268 of file PhotometricOptimizer.cpp.
References data, HuginBase::PhotometricOptimizer::OptimData::m_progress, and AppBase::ProgressDisplay::updateDisplay().
Referenced by optimizePhotometric().
|
virtual |
implementation of the algorithm.
You should override with your algorithm's implementiation.
Implements HuginBase::PanoramaAlgorithm.
Reimplemented in HuginBase::SmartPhotometricOptimizer.
Definition at line 477 of file PhotometricOptimizer.cpp.
References HuginBase::TimeConsumingPanoramaAlgorithm::cancelAlgorithm(), HuginBase::TimeConsumingPanoramaAlgorithm::getProgressDisplay(), o_correspondences, o_imageStepSize, HuginBase::PanoramaAlgorithm::o_panorama, o_resultError, o_vars, optimizePhotometric(), and HuginBase::TimeConsumingPanoramaAlgorithm::wasCancelled().
|
protected |
Definition at line 128 of file PhotometricOptimizer.h.
Referenced by runAlgorithm(), and HuginBase::SmartPhotometricOptimizer::runAlgorithm().
|
protected |
Definition at line 129 of file PhotometricOptimizer.h.
Referenced by runAlgorithm(), and HuginBase::SmartPhotometricOptimizer::runAlgorithm().
|
protected |
Definition at line 130 of file PhotometricOptimizer.h.
Referenced by runAlgorithm(), and HuginBase::SmartPhotometricOptimizer::runAlgorithm().
|
protected |
Definition at line 127 of file PhotometricOptimizer.h.
Referenced by runAlgorithm().