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

#include <PhotometricOptimizer.h>

Inheritance diagram for HuginBase::SmartPhotometricOptimizer:
Inheritance graph

Public Types

enum  PhotometricOptimizeMode { OPT_PHOTOMETRIC_LDR =0, OPT_PHOTOMETRIC_LDR_WB, OPT_PHOTOMETRIC_HDR, OPT_PHOTOMETRIC_HDR_WB }
 local optimize definition. More...
 
- Public Types inherited from HuginBase::PhotometricOptimizer
typedef std::vector
< vigra_ext::PointPairRGB
PointPairs
 

Public Member Functions

 SmartPhotometricOptimizer (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay, const OptimizeVector &vars, const PointPairs &correspondences, const float imageStepSize, PhotometricOptimizeMode optMode)
 
virtual ~SmartPhotometricOptimizer ()
 
virtual bool runAlgorithm ()
 implementation of the algorithm. More...
 
- Public Member Functions inherited from HuginBase::PhotometricOptimizer
 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...
 
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 smartOptimizePhotometric (PanoramaData &pano, PhotometricOptimizeMode mode, const std::vector< vigra_ext::PointPairRGB > &correspondences, const float imageStepSize, AppBase::ProgressDisplay *progress, double &error)
 use various heuristics to decide what to optimize. More...
 
- Static Public Member Functions inherited from HuginBase::PhotometricOptimizer
static void optimizePhotometric (PanoramaData &pano, const OptimizeVector &vars, const PointPairs &correspondences, const float imageStepSize, AppBase::ProgressDisplay *progress, double &error)
 

Protected Attributes

PhotometricOptimizeMode o_optMode
 
- Protected Attributes inherited from HuginBase::PhotometricOptimizer
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 Types inherited from HuginBase::SmartOptimizerStub
enum  OptMode {
  OPT_POS =1, OPT_B =2, OPT_AC =4, OPT_DE =8,
  OPT_HFOV =16, OPT_GT =32, OPT_VIG =64, OPT_VIGCENTRE =128,
  OPT_EXP =256, OPT_WB =512, OPT_RESP =1024
}
 
- 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)
 
- Static Protected Member Functions inherited from HuginBase::PhotometricOptimizer
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)
 
- Static Protected Member Functions inherited from HuginBase::SmartOptimizerStub
static OptimizeVector createOptVars (const PanoramaData &optPano, int mode, unsigned anchorImg=0)
 helper function for optvar creation More...
 

Detailed Description

Definition at line 136 of file PhotometricOptimizer.h.

Member Enumeration Documentation

local optimize definition.

Enumerator
OPT_PHOTOMETRIC_LDR 
OPT_PHOTOMETRIC_LDR_WB 
OPT_PHOTOMETRIC_HDR 
OPT_PHOTOMETRIC_HDR_WB 

Definition at line 140 of file PhotometricOptimizer.h.

Constructor & Destructor Documentation

HuginBase::SmartPhotometricOptimizer::SmartPhotometricOptimizer ( PanoramaData panorama,
AppBase::ProgressDisplay progressDisplay,
const OptimizeVector vars,
const PointPairs correspondences,
const float  imageStepSize,
PhotometricOptimizeMode  optMode 
)
inline

Definition at line 148 of file PhotometricOptimizer.h.

virtual HuginBase::SmartPhotometricOptimizer::~SmartPhotometricOptimizer ( )
inlinevirtual

Definition at line 157 of file PhotometricOptimizer.h.

Member Function Documentation

bool HuginBase::SmartPhotometricOptimizer::runAlgorithm ( )
virtual
void HuginBase::SmartPhotometricOptimizer::smartOptimizePhotometric ( PanoramaData pano,
PhotometricOptimizeMode  mode,
const std::vector< vigra_ext::PointPairRGB > &  correspondences,
const float  imageStepSize,
AppBase::ProgressDisplay progress,
double &  error 
)
static

Member Data Documentation

PhotometricOptimizeMode HuginBase::SmartPhotometricOptimizer::o_optMode
protected

Definition at line 174 of file PhotometricOptimizer.h.


The documentation for this class was generated from the following files: