25 #ifndef INCLUDED_ProjectPoint_h_GUID_11215CA6_05AF_4795_CD97_835F0B623864 26 #define INCLUDED_ProjectPoint_h_GUID_11215CA6_05AF_4795_CD97_835F0B623864 45 Eigen::Vector2d
const &principalPoint,
46 Eigen::Vector3d
const &camPoint) {
47 return (camPoint.head<2>() / camPoint[2]) * focalLength +
57 inline Eigen::Vector2d
projectPoint(Eigen::Vector3d
const &translation,
60 Eigen::Vector2d
const &principalPoint,
61 Eigen::Vector3d
const &objectPoint) {
63 rotation * objectPoint + translation);
68 #endif // INCLUDED_ProjectPoint_h_GUID_11215CA6_05AF_4795_CD97_835F0B623864 The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Header wrapping include of <Eigen/Core> and <Eigen/Geometry> for warning quieting.
Eigen::Vector2d 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 distort...
Definition: ProjectPoint.h:44
Definition: Quaternion.h:47