projection
Public Member Functions | Public Attributes | List of all members
projection::omnicam::Model Class Reference

#include <OmnidirectionalConfig.hpp>

Public Member Functions

void loadFromFile (std::string filename)
 
bool world2cam (const Eigen::Vector3d &world, Eigen::Vector2d &cam) const
 
bool cam2world (const Eigen::Vector2d &cam, Eigen::Vector3d &world) const
 
void setAngleRange (float min, float max)
 set the angle range for which the calibration is valid More...
 
bool isValid () const
 return true if the configuration is valid More...
 
size_t getWidth () const
 
size_t getHeight () const
 

Public Attributes

std::vector< double > pol
 
std::vector< double > invpol
 
double xc
 
double yc
 
double c
 
double d
 
double e
 
size_t width
 
size_t height
 
double min_angle
 
double max_angle
 

Member Function Documentation

bool Model::cam2world ( const Eigen::Vector2d &  cam,
Eigen::Vector3d &  world 
) const

transform camera to world coordinates

Returns
true if world coordinate is valid
size_t Model::getHeight ( ) const
size_t Model::getWidth ( ) const
bool Model::isValid ( ) const

return true if the configuration is valid

void Model::loadFromFile ( std::string  filename)

load a calibration file generated by OcamCalib

void Model::setAngleRange ( float  min,
float  max 
)

set the angle range for which the calibration is valid

bool Model::world2cam ( const Eigen::Vector3d &  world,
Eigen::Vector2d &  cam 
) const

transform world to camera coordinates

Returns
true if the camera coordinate is valid

Member Data Documentation

double projection::omnicam::Model::c
double projection::omnicam::Model::d
double projection::omnicam::Model::e
size_t projection::omnicam::Model::height
std::vector<double> projection::omnicam::Model::invpol
double projection::omnicam::Model::max_angle
double projection::omnicam::Model::min_angle
std::vector<double> projection::omnicam::Model::pol
size_t projection::omnicam::Model::width
double projection::omnicam::Model::xc
double projection::omnicam::Model::yc

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