HuginBase::SmartPhotometricOptimizer Class Reference

#include <PhotometricOptimizer.h>

Inheritance diagram for HuginBase::SmartPhotometricOptimizer:

Inheritance graph
[legend]
List of all members.

Public Types

 OPT_PHOTOMETRIC_LDR = 0
 OPT_PHOTOMETRIC_LDR_WB
 OPT_PHOTOMETRIC_HDR
 OPT_PHOTOMETRIC_HDR_WB
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

static 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

Detailed Description

Definition at line 134 of file PhotometricOptimizer.h.


Member Enumeration Documentation

enum HuginBase::SmartPhotometricOptimizer::PhotometricOptimizeMode

local optimize definition.

Enumerator:
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(), HuginBase::PhotometricOptimizer::o_correspondences, o_optMode, HuginBase::PanoramaAlgorithm::o_panorama, HuginBase::PhotometricOptimizer::o_resultError, smartOptimizePhotometric(), and HuginBase::TimeConsumingPanoramaAlgorithm::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(), HuginBase::SmartOptimizerStub::OPT_EXP, OPT_PHOTOMETRIC_HDR, OPT_PHOTOMETRIC_HDR_WB, OPT_PHOTOMETRIC_LDR, OPT_PHOTOMETRIC_LDR_WB, HuginBase::SmartOptimizerStub::OPT_RESP, HuginBase::SmartOptimizerStub::OPT_VIG, HuginBase::SmartOptimizerStub::OPT_WB, 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 23 Oct 2014 for Hugintrunk by  doxygen 1.4.7