OSVR-Core
Namespaces | Functions
ProjectPoint.h File Reference

Header. More...

#include <osvr/Util/EigenCoreGeometry.h>

Go to the source code of this file.

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 

Functions

Eigen::Vector2d osvr::vbtracker::projectPoint (double focalLength, Eigen::Vector2d const &principalPoint, Eigen::Vector3d const &camPoint)
 Project point for a simple pinhole camera model, with focal lengths equal on both axes and no distortion. More...
 
Eigen::Vector2d osvr::vbtracker::projectPoint (Eigen::Vector3d const &translation, Eigen::Quaterniond const &rotation, double focalLength, Eigen::Vector2d const &principalPoint, Eigen::Vector3d const &objectPoint)
 Project point for a simple pinhole camera model, with focal lengths equal on both axes and no distortion. More...
 

Detailed Description

Header.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr

Function Documentation

§ projectPoint() [1/2]

Eigen::Vector2d osvr::vbtracker::projectPoint ( double  focalLength,
Eigen::Vector2d const &  principalPoint,
Eigen::Vector3d const &  camPoint 
)
inline

Project point for a simple pinhole camera model, with focal lengths equal on both axes and no distortion.

(Camera intrinsic matrix is implied - not used directly because it's sparse.)

This version takes in an point already in camera space.

§ projectPoint() [2/2]

Eigen::Vector2d osvr::vbtracker::projectPoint ( Eigen::Vector3d const &  translation,
Eigen::Quaterniond const &  rotation,
double  focalLength,
Eigen::Vector2d const &  principalPoint,
Eigen::Vector3d const &  objectPoint 
)
inline

Project point for a simple pinhole camera model, with focal lengths equal on both axes and no distortion.

(Camera intrinsic matrix is implied - not used directly because it's sparse.)

This version takes in a point in object space that needs to be transformed to camera space with a translation and rotation.