24 #ifndef _PHOTOMETRIC_OPTIMIZER_H_
25 #define _PHOTOMETRIC_OPTIMIZER_H_
49 const PointPairs& correspondences,
const float imageStepSize)
51 o_vars(vars), o_correspondences(correspondences), o_resultError(0.0), o_imageStepSize(imageStepSize)
61 const PointPairs& correspondences,
62 const float imageStepSize,
81 std::vector<vigra_ext::PointPairRGB>
m_data;
91 const std::vector<vigra_ext::PointPairRGB>&
data,
92 double mEstimatorSigma,
bool symmetric,
99 void FromX(
double * x);
103 static int photometricVis(
double *p,
double *x,
int m,
int n,
int iter,
double sqerror,
void *
data);
106 static void photometricError(
double* p,
double* x,
int m,
int n,
void*
data);
115 virtual bool runAlgorithm();
122 return o_resultError;
141 OPT_PHOTOMETRIC_LDR=0,
144 OPT_PHOTOMETRIC_HDR_WB
151 const float imageStepSize,
153 :
PhotometricOptimizer(panorama, progressDisplay, vars, correspondences, imageStepSize), o_optMode(optMode)
163 static void smartOptimizePhotometric(
PanoramaData & pano, PhotometricOptimizeMode mode,
164 const std::vector<vigra_ext::PointPairRGB> & correspondences,
165 const float imageStepSize,
170 virtual bool runAlgorithm();
SmartPhotometricOptimizer(PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay, const OptimizeVector &vars, const PointPairs &correspondences, const float imageStepSize, PhotometricOptimizeMode optMode)
AppBase::ProgressDisplay * m_progress
std::vector< SrcPanoImage > m_imgs
const PanoramaData & m_pano
std::vector< vigra_ext::PointPairRGB > PointPairs
PhotometricOptimizeMode o_optMode
double getResultError() const
PhotometricOptimizeMode
local optimize definition.
virtual ~SmartPhotometricOptimizer()
virtual ~PhotometricOptimizer()
PhotometricOptimizer(PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay, const OptimizeVector &vars, const PointPairs &correspondences, const float imageStepSize)
std::set< unsigned > imgs
virtual bool modifiesPanoramaData() const
returns true if the algorithm changes the PanoramaData.
!! from PTOptimise.h 1951
const PointPairs & o_correspondences
const float o_imageStepSize
options wxIntPtr wxIntPtr sortData std::vector< PanoInfo > * data
std::vector< std::set< std::string > > OptimizeVector
std::vector< vigra_ext::PointPairRGB > m_data
const OptimizeVector & o_vars
std::vector< VarMapping > m_vars