Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
HuginBase::PhotometricOptimizer Class Reference

#include <PhotometricOptimizer.h>

Inheritance diagram for HuginBase::PhotometricOptimizer:
Inheritance graph

Classes

struct  OptimData
 
struct  VarMapping
 

Public Types

typedef std::vector
< vigra_ext::PointPairRGB
PointPairs
 

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. More...
 
virtual bool runAlgorithm ()
 implementation of the algorithm. More...
 
double getResultError () const
 
- Public Member Functions inherited from HuginBase::TimeConsumingPanoramaAlgorithm
virtual ~TimeConsumingPanoramaAlgorithm ()
 
virtual bool wasCancelled () const
 
- Public Member Functions inherited from HuginBase::PanoramaAlgorithm
virtual ~PanoramaAlgorithm ()
 
virtual bool hasRunSuccessfully ()
 
virtual void run ()
 runs the algorithm. More...
 

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
 
- Protected Attributes inherited from HuginBase::PanoramaAlgorithm
PanoramaDatao_panorama
 
bool o_successful
 

Additional Inherited Members

- Protected Member Functions inherited from HuginBase::TimeConsumingPanoramaAlgorithm
 TimeConsumingPanoramaAlgorithm (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay=NULL)
 [Warning! it keeps the reference to the panorama data!] More...
 
virtual AppBase::ProgressDisplaygetProgressDisplay () const
 
virtual bool hasProgressDisplay () const
 
virtual void cancelAlgorithm ()
 Call this when the algorithm is cancelled. More...
 
virtual void algorithmCancelled ()
 Called when the algorithm got cancelled; override with cleaning up process etc. More...
 
- Protected Member Functions inherited from HuginBase::PanoramaAlgorithm
 PanoramaAlgorithm (PanoramaData &panorama)
 

Detailed Description

Definition at line 39 of file PhotometricOptimizer.h.

Member Typedef Documentation

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 ( )
inlinevirtual

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
inlinevirtual

returns true if the algorithm changes the PanoramaData.

Implements HuginBase::PanoramaAlgorithm.

Definition at line 111 of file PhotometricOptimizer.h.

void HuginBase::PhotometricOptimizer::optimizePhotometric ( PanoramaData pano,
const OptimizeVector vars,
const PointPairs correspondences,
const float  imageStepSize,
AppBase::ProgressDisplay progress,
double &  error 
)
static
void HuginBase::PhotometricOptimizer::photometricError ( double *  p,
double *  x,
int  m,
int  n,
void *  data 
)
staticprotected
int HuginBase::PhotometricOptimizer::photometricVis ( double *  p,
double *  x,
int  m,
int  n,
int  iter,
double  sqerror,
void *  data 
)
staticprotected
bool HuginBase::PhotometricOptimizer::runAlgorithm ( )
virtual

Member Data Documentation

const PointPairs& HuginBase::PhotometricOptimizer::o_correspondences
protected
const float HuginBase::PhotometricOptimizer::o_imageStepSize
protected
double HuginBase::PhotometricOptimizer::o_resultError
protected
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: