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

void optimizePhotometric (PanoramaData &pano, const OptimizeVector &vars, const PointPairs &correspondences, AppBase::ProgressReporter &progress, double &error)

Static Protected Member Functions

int photometricVis (double *p, double *x, int m, int n, int iter, double sqerror, void *data)
void photometricError (double *p, double *x, int m, int n, void *data)

Protected Attributes

const OptimizeVectoro_vars
const PointPairso_correspondences
double o_resultError

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.

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 DEBUG_DEBUG, HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::enforceMonotonicity(), 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::Photometric::ResponseTransform< VTIn >::m_lutR, HuginBase::PhotometricOptimizer::OptimData::m_pano, makefile::ofstream, HuginBase::OptimizeVector, HuginBase::PanoramaData::printPanoramaScript(), HuginBase::UIntSet, 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, o_resultError, o_vars, optimizePhotometric(), HuginBase::TimeConsumingPanoramaAlgorithm::wasCancelled(), and AppBase::ProgressDisplay::wasCancelled().


Member Data Documentation

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

Definition at line 127 of file PhotometricOptimizer.h.

Referenced by runAlgorithm().

double HuginBase::PhotometricOptimizer::o_resultError [protected]
 

Definition at line 128 of file PhotometricOptimizer.h.

Referenced by 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 Wed Jul 30 01:25:54 2014 for Hugintrunk by  doxygen 1.3.9.1