25 #ifndef INCLUDED_ProjectPoint_h_GUID_11215CA6_05AF_4795_CD97_835F0B623864
26 #define INCLUDED_ProjectPoint_h_GUID_11215CA6_05AF_4795_CD97_835F0B623864
44 inline Eigen::Vector2d projectPoint(
double focalLength,
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,
58 Eigen::Quaterniond
const &rotation,
60 Eigen::Vector2d
const &principalPoint,
61 Eigen::Vector3d
const &objectPoint) {
62 return projectPoint(focalLength, principalPoint,
63 rotation * objectPoint + translation);
68 #endif // INCLUDED_ProjectPoint_h_GUID_11215CA6_05AF_4795_CD97_835F0B623864
Header wrapping include of and for warning quieting.