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, const float imageStepSize)
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, const float imageStepSize, AppBase::ProgressDisplay *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
const float o_imageStepSize
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,
const float  imageStepSize 
) [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 119 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 111 of file PhotometricOptimizer.h.

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

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

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

Definition at line 152 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 268 of file PhotometricOptimizer.cpp.

References HuginBase::PhotometricOptimizer::OptimData::m_progress, and AppBase::ProgressDisplay::updateDisplay().

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 470 of file PhotometricOptimizer.cpp.

References HuginBase::TimeConsumingPanoramaAlgorithm::cancelAlgorithm(), HuginBase::TimeConsumingPanoramaAlgorithm::getProgressDisplay(), o_correspondences, o_imageStepSize, 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 128 of file PhotometricOptimizer.h.

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

const float HuginBase::PhotometricOptimizer::o_imageStepSize [protected]

Definition at line 129 of file PhotometricOptimizer.h.

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

double HuginBase::PhotometricOptimizer::o_resultError [protected]

Definition at line 130 of file PhotometricOptimizer.h.

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

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

Definition at line 127 of file PhotometricOptimizer.h.

Referenced by runAlgorithm().


The documentation for this class was generated from the following files:
Generated on 10 Dec 2016 for Hugintrunk by  doxygen 1.4.7