PICCANTE  0.4
The hottest HDR imaging library!
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
pic::NelderMeadOptGordonLowe Class Reference

#include <nelder_mead_opt_gordon_lowe.hpp>

Inheritance diagram for pic::NelderMeadOptGordonLowe:
pic::NelderMeadOptBase< double >

Public Member Functions

 NelderMeadOptGordonLowe (std::vector< Vec< 2, float > > m0, std::vector< Vec< 2, float > > m1)
 NelderMeadOptGordonLowe. More...
 
double ProjectionError (float *x, unsigned int index)
 ProjectionError. More...
 
float function (float *x, unsigned int n)
 function More...
 
- Public Member Functions inherited from pic::NelderMeadOptBase< double >
 NelderMeadOptBase ()
 NelderMeadOptBase. More...
 
void GlobalSettings ()
 GlobalSettings. More...
 
virtual double function (double *x, unsigned int n)
 function More...
 
virtual double * run (double *x_start, unsigned int n, double epsilon=1e-4f, int max_iterations=1000, double *x=NULL)
 

Static Public Member Functions

static Eigen::Matrix34d parseCameraMatrix (float *x, unsigned int index)
 
static void init3DPoints (Eigen::Matrix3d K, std::vector< Vec< 2, float > > &m, std::vector< Eigen::Vector3d > &x, float distance=20.0f)
 init3DPoints More...
 
static double * prepareInputData (std::vector< Eigen::Matrix3d > &K, std::vector< Eigen::Matrix3d > &R, std::vector< Eigen::Vector3d > &t, std::vector< Eigen::Vector3d > &x, unsigned int &ret_size)
 prepareInputData More...
 

Public Attributes

std::vector< std::vector< Vec< 2, float > > > m
 
- Public Attributes inherited from pic::NelderMeadOptBase< double >
int max_iterations
 
double output_error
 

Additional Inherited Members

- Protected Member Functions inherited from pic::NelderMeadOptBase< double >
void InitSimplex (double *x0, unsigned int n)
 InitSimplex. More...
 
void ComputeMean (double *x_mean, unsigned int n)
 ComputeMean. More...
 
double ComputeReflected (double *x_r, double *x_mean, unsigned int n)
 ComputeReflected. More...
 
double ComputeExpansion (double *x_e, double *x_mean, unsigned int n)
 ComputeExpansion. More...
 
double ComputeContractionInside (double *x_c, double *x_mean, unsigned int n)
 ComputeContractionInside. More...
 
void ComputeReduction (unsigned int n)
 ComputeReduction. More...
 
double * run_aux (double *x_start, unsigned int n, double epsilon, int max_iterations=1000, double *x=NULL)
 run_aux More...
 
- Protected Attributes inherited from pic::NelderMeadOptBase< double >
bool bStopMean
 
double delta
 
double delta_zero
 
double alpha
 
double gamma
 
double lambda
 
double sigma
 
std::vector< std::pair< double, double *> > simplex
 

Constructor & Destructor Documentation

◆ NelderMeadOptGordonLowe()

pic::NelderMeadOptGordonLowe::NelderMeadOptGordonLowe ( std::vector< Vec< 2, float > >  m0,
std::vector< Vec< 2, float > >  m1 
)
inline

NelderMeadOptGordonLowe.

Parameters
m0
m1

Member Function Documentation

◆ function()

float pic::NelderMeadOptGordonLowe::function ( float *  x,
unsigned int  n 
)
inline

function

Parameters
x
n
Returns

◆ init3DPoints()

static void pic::NelderMeadOptGordonLowe::init3DPoints ( Eigen::Matrix3d  K,
std::vector< Vec< 2, float > > &  m,
std::vector< Eigen::Vector3d > &  x,
float  distance = 20.0f 
)
inlinestatic

init3DPoints

Parameters
K
m
x
distance

◆ parseCameraMatrix()

static Eigen::Matrix34d pic::NelderMeadOptGordonLowe::parseCameraMatrix ( float *  x,
unsigned int  index 
)
inlinestatic

◆ prepareInputData()

static double* pic::NelderMeadOptGordonLowe::prepareInputData ( std::vector< Eigen::Matrix3d > &  K,
std::vector< Eigen::Matrix3d > &  R,
std::vector< Eigen::Vector3d > &  t,
std::vector< Eigen::Vector3d > &  x,
unsigned int &  ret_size 
)
inlinestatic

prepareInputData

Parameters
K
R
t
x
ret_size
Returns

◆ ProjectionError()

double pic::NelderMeadOptGordonLowe::ProjectionError ( float *  x,
unsigned int  index 
)
inline

ProjectionError.

Parameters
x
index
Returns

Member Data Documentation

◆ m

std::vector< std::vector< Vec<2, float> > > pic::NelderMeadOptGordonLowe::m

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