HuginBase::PhotometricOptimizer Class Reference

#include <PhotometricOptimizer.h>

Inheritance diagram for HuginBase::PhotometricOptimizer:

Inheritance graph
[legend]
List of all members.

Public Types

typedef std::vector< vigra_ext::PointPairRGBPointPairs

Public Member Functions

 PhotometricOptimizer (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay, const OptimizeVector &vars, const PointPairs &correspondences)
virtual ~PhotometricOptimizer ()
virtual bool modifiesPanoramaData () const
 returns true if the algorithm changes the PanoramaData.
virtual bool runAlgorithm ()
 implementation of the algorithm.
double getResultError () const

Static Public Member Functions

static void optimizePhotometric (PanoramaData &pano, const OptimizeVector &vars, const PointPairs &correspondences, AppBase::ProgressReporter &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 OptimizeVectoro_vars
const PointPairso_correspondences
double o_resultError

Classes

struct  OptimData
struct  VarMapping

Detailed Description

Definition at line 39 of file PhotometricOptimizer.h.


Member Typedef Documentation

typedef std::vector<vigra_ext::PointPairRGB> HuginBase::PhotometricOptimizer::PointPairs

Definition at line 44 of file PhotometricOptimizer.h.


Constructor & Destructor Documentation

HuginBase::PhotometricOptimizer::PhotometricOptimizer ( PanoramaData panorama,
AppBase::ProgressDisplay progressDisplay,
const OptimizeVector vars,
const PointPairs correspondences 
) [inline]

Definition at line 47 of file PhotometricOptimizer.h.

virtual HuginBase::PhotometricOptimizer::~PhotometricOptimizer (  )  [inline, virtual]

Definition at line 55 of file PhotometricOptimizer.h.


Member Function Documentation

double HuginBase::PhotometricOptimizer::getResultError (  )  const [inline]

Definition at line 118 of file PhotometricOptimizer.h.

virtual bool HuginBase::PhotometricOptimizer::modifiesPanoramaData (  )  const [inline, virtual]

returns true if the algorithm changes the PanoramaData.

Implements HuginBase::PanoramaAlgorithm.

Definition at line 110 of file PhotometricOptimizer.h.

static void HuginBase::PhotometricOptimizer::optimizePhotometric ( PanoramaData pano,
const OptimizeVector vars,
const PointPairs correspondences,
AppBase::ProgressReporter progress,
double &  error 
) [static]

Referenced by PT::optimizePhotometric(), runAlgorithm(), and HuginBase::SmartPhotometricOptimizer::smartOptimizePhotometric().

void HuginBase::PhotometricOptimizer::photometricError ( double *  p,
double *  x,
int  m,
int  n,
void *  data 
) [static, protected]

Definition at line 154 of file PhotometricOptimizer.cpp.

References 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().

int HuginBase::PhotometricOptimizer::photometricVis ( double *  p,
double *  x,
int  m,
int  n,
int  iter,
double  sqerror,
void *  data 
) [static, protected]

Definition at line 265 of file PhotometricOptimizer.cpp.

References AppBase::ProgressReporter::increaseProgress(), and HuginBase::PhotometricOptimizer::OptimData::m_progress.

bool HuginBase::PhotometricOptimizer::runAlgorithm (  )  [virtual]

implementation of the algorithm.

You should override with your algorithm's implementiation.

Implements HuginBase::PanoramaAlgorithm.

Reimplemented in HuginBase::SmartPhotometricOptimizer.

Definition at line 420 of file PhotometricOptimizer.cpp.

References HuginBase::TimeConsumingPanoramaAlgorithm::cancelAlgorithm(), HuginBase::TimeConsumingPanoramaAlgorithm::getProgressDisplay(), HuginBase::TimeConsumingPanoramaAlgorithm::hasProgressDisplay(), AppBase::ProgressReporterAdaptor::newProgressReporter(), o_correspondences, HuginBase::PanoramaAlgorithm::o_panorama, o_resultError, o_vars, optimizePhotometric(), and HuginBase::TimeConsumingPanoramaAlgorithm::wasCancelled().


Member Data Documentation

const PointPairs& HuginBase::PhotometricOptimizer::o_correspondences [protected]

Definition at line 127 of file PhotometricOptimizer.h.

Referenced by HuginBase::SmartPhotometricOptimizer::runAlgorithm(), and runAlgorithm().

double HuginBase::PhotometricOptimizer::o_resultError [protected]

Definition at line 128 of file PhotometricOptimizer.h.

Referenced by HuginBase::SmartPhotometricOptimizer::runAlgorithm(), and runAlgorithm().

const OptimizeVector& HuginBase::PhotometricOptimizer::o_vars [protected]

Definition at line 126 of file PhotometricOptimizer.h.

Referenced by runAlgorithm().


The documentation for this class was generated from the following files:
Generated on 25 Oct 2014 for Hugintrunk by  doxygen 1.4.7