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

◆ cam2world()

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

transform camera to world coordinates

Returns
true if world coordinate is valid

◆ getHeight()

size_t Model::getHeight ( ) const

◆ getWidth()

size_t Model::getWidth ( ) const

◆ isValid()

bool Model::isValid ( ) const

return true if the configuration is valid

◆ loadFromFile()

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

load a calibration file generated by OcamCalib

◆ setAngleRange()

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

set the angle range for which the calibration is valid

◆ world2cam()

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

◆ c

double projection::omnicam::Model::c

◆ d

double projection::omnicam::Model::d

◆ e

double projection::omnicam::Model::e

◆ height

size_t projection::omnicam::Model::height

◆ invpol

std::vector<double> projection::omnicam::Model::invpol

◆ max_angle

double projection::omnicam::Model::max_angle

◆ min_angle

double projection::omnicam::Model::min_angle

◆ pol

std::vector<double> projection::omnicam::Model::pol

◆ width

size_t projection::omnicam::Model::width

◆ xc

double projection::omnicam::Model::xc

◆ yc

double projection::omnicam::Model::yc

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