|
Hugintrunk
0.1
|
#include <PhotometricOptimizer.h>

Public Types | |
| enum | PhotometricOptimizeMode { OPT_PHOTOMETRIC_LDR =0, OPT_PHOTOMETRIC_LDR_WB, OPT_PHOTOMETRIC_HDR, OPT_PHOTOMETRIC_HDR_WB } |
| local optimize definition. More... | |
Public Types inherited from HuginBase::PhotometricOptimizer | |
| typedef std::vector < vigra_ext::PointPairRGB > | PointPairs |
Public Member Functions | |
| SmartPhotometricOptimizer (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay, const OptimizeVector &vars, const PointPairs &correspondences, const float imageStepSize, PhotometricOptimizeMode optMode) | |
| virtual | ~SmartPhotometricOptimizer () |
| virtual bool | runAlgorithm () |
| implementation of the algorithm. More... | |
Public Member Functions inherited from HuginBase::PhotometricOptimizer | |
| 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... | |
| 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 | smartOptimizePhotometric (PanoramaData &pano, PhotometricOptimizeMode mode, const std::vector< vigra_ext::PointPairRGB > &correspondences, const float imageStepSize, AppBase::ProgressDisplay *progress, double &error) |
| use various heuristics to decide what to optimize. More... | |
Static Public Member Functions inherited from HuginBase::PhotometricOptimizer | |
| static void | optimizePhotometric (PanoramaData &pano, const OptimizeVector &vars, const PointPairs &correspondences, const float imageStepSize, AppBase::ProgressDisplay *progress, double &error) |
Protected Attributes | |
| PhotometricOptimizeMode | o_optMode |
Protected Attributes inherited from HuginBase::PhotometricOptimizer | |
| 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 Types inherited from HuginBase::SmartOptimizerStub | |
| enum | OptMode { OPT_POS =1, OPT_B =2, OPT_AC =4, OPT_DE =8, OPT_HFOV =16, OPT_GT =32, OPT_VIG =64, OPT_VIGCENTRE =128, OPT_EXP =256, OPT_WB =512, OPT_RESP =1024 } |
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) | |
Static Protected Member Functions inherited from HuginBase::PhotometricOptimizer | |
| 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) |
Static Protected Member Functions inherited from HuginBase::SmartOptimizerStub | |
| static OptimizeVector | createOptVars (const PanoramaData &optPano, int mode, unsigned anchorImg=0) |
| helper function for optvar creation More... | |
Definition at line 136 of file PhotometricOptimizer.h.
local optimize definition.
| Enumerator | |
|---|---|
| OPT_PHOTOMETRIC_LDR | |
| OPT_PHOTOMETRIC_LDR_WB | |
| OPT_PHOTOMETRIC_HDR | |
| OPT_PHOTOMETRIC_HDR_WB | |
Definition at line 140 of file PhotometricOptimizer.h.
|
inline |
Definition at line 148 of file PhotometricOptimizer.h.
|
inlinevirtual |
Definition at line 157 of file PhotometricOptimizer.h.
|
virtual |
implementation of the algorithm.
You should override with your algorithm's implementiation.
Reimplemented from HuginBase::PhotometricOptimizer.
Definition at line 492 of file PhotometricOptimizer.cpp.
References HuginBase::TimeConsumingPanoramaAlgorithm::cancelAlgorithm(), HuginBase::TimeConsumingPanoramaAlgorithm::getProgressDisplay(), HuginBase::PhotometricOptimizer::o_correspondences, HuginBase::PhotometricOptimizer::o_imageStepSize, HuginBase::PanoramaAlgorithm::o_panorama, HuginBase::PhotometricOptimizer::o_resultError, and HuginBase::TimeConsumingPanoramaAlgorithm::wasCancelled().
|
static |
use various heuristics to decide what to optimize.
Definition at line 401 of file PhotometricOptimizer.cpp.
References HuginBase::CheckStrangeWB(), HuginBase::PanoramaOptions::colorReferenceImage, fill_set(), HuginBase::getHDRStacks(), HuginBase::PanoramaData::getImage(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::PanoramaData::getOptions(), HuginBase::PanoramaData::getVariables(), HuginBase::IsHighVignetting(), HuginBase::PhotometricOptimizer::optimizePhotometric(), and HuginBase::PanoramaData::updateVariables().
Referenced by OptimizePhotometricPanel::runOptimizer().
|
protected |
Definition at line 174 of file PhotometricOptimizer.h.
1.8.5