HuginBase::SmartPhotometricOptimizer Class Reference

#include <PhotometricOptimizer.h>

Inheritance diagram for HuginBase::SmartPhotometricOptimizer:

Inheritance graph
[legend]
List of all members.

Public Types

enum  PhotometricOptimizeMode { OPT_PHOTOMETRIC_LDR = 0, OPT_PHOTOMETRIC_LDR_WB, OPT_PHOTOMETRIC_HDR, OPT_PHOTOMETRIC_HDR_WB }
 local optimize definition. More...

Public Member Functions

 SmartPhotometricOptimizer (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay, const OptimizeVector &vars, const PointPairs &correspondences, PhotometricOptimizeMode optMode)
virtual ~SmartPhotometricOptimizer ()
virtual bool runAlgorithm ()
 implementation of the algorithm.

Static Public Member Functions

void smartOptimizePhotometric (PanoramaData &pano, PhotometricOptimizeMode mode, const std::vector< vigra_ext::PointPairRGB > &correspondences, AppBase::ProgressReporter &progress, double &error)
 use various heuristics to decide what to optimize.

Protected Attributes

PhotometricOptimizeMode o_optMode

Member Enumeration Documentation

enum HuginBase::SmartPhotometricOptimizer::PhotometricOptimizeMode
 

local optimize definition.

Enumeration values:
OPT_PHOTOMETRIC_LDR 
OPT_PHOTOMETRIC_LDR_WB 
OPT_PHOTOMETRIC_HDR 
OPT_PHOTOMETRIC_HDR_WB 

Definition at line 138 of file PhotometricOptimizer.h.


Constructor & Destructor Documentation

HuginBase::SmartPhotometricOptimizer::SmartPhotometricOptimizer PanoramaData panorama,
AppBase::ProgressDisplay progressDisplay,
const OptimizeVector vars,
const PointPairs correspondences,
PhotometricOptimizeMode  optMode
[inline]
 

Definition at line 146 of file PhotometricOptimizer.h.

virtual HuginBase::SmartPhotometricOptimizer::~SmartPhotometricOptimizer  )  [inline, virtual]
 

Definition at line 154 of file PhotometricOptimizer.h.


Member Function Documentation

bool HuginBase::SmartPhotometricOptimizer::runAlgorithm  )  [virtual]
 

implementation of the algorithm.

You should override with your algorithm's implementiation.

Reimplemented from HuginBase::PhotometricOptimizer.

Definition at line 442 of file PhotometricOptimizer.cpp.

References HuginBase::TimeConsumingPanoramaAlgorithm::cancelAlgorithm(), HuginBase::TimeConsumingPanoramaAlgorithm::getProgressDisplay(), HuginBase::TimeConsumingPanoramaAlgorithm::hasProgressDisplay(), o_optMode, smartOptimizePhotometric(), HuginBase::TimeConsumingPanoramaAlgorithm::wasCancelled(), and AppBase::ProgressDisplay::wasCancelled().

void HuginBase::SmartPhotometricOptimizer::smartOptimizePhotometric PanoramaData pano,
PhotometricOptimizeMode  mode,
const std::vector< vigra_ext::PointPairRGB > &  correspondences,
AppBase::ProgressReporter progress,
double &  error
[static]
 

use various heuristics to decide what to optimize.

Definition at line 367 of file PhotometricOptimizer.cpp.

References HuginBase::PanoramaOptions::colorReferenceImage, HuginBase::SmartOptimizerStub::createOptVars(), HuginBase::PanoramaData::getOptions(), OPT_PHOTOMETRIC_HDR, OPT_PHOTOMETRIC_LDR, and HuginBase::PhotometricOptimizer::optimizePhotometric().

Referenced by runAlgorithm(), and PT::smartOptimizePhotometric().


Member Data Documentation

PhotometricOptimizeMode HuginBase::SmartPhotometricOptimizer::o_optMode [protected]
 

Definition at line 170 of file PhotometricOptimizer.h.

Referenced by runAlgorithm().


The documentation for this class was generated from the following files:
Generated on Fri Aug 29 01:25:52 2014 for Hugintrunk by  doxygen 1.3.9.1