37 typedef boost::shared_ptr<SimpleCamera> shared_ptr;
91 return SimpleCamera(Base::LookatPose(eye, target, upVector), K);
109 SimpleCamera::shared_ptr
clone()
const {
return boost::make_shared<SimpleCamera>(*
this); }
118 if ((
size_t) d.size() == 6)
119 return SimpleCamera(this->pose().retract(d), calibration());
122 calibration().retract(d.tail(calibration().dim())));
130 GTSAM_EXPORT SimpleCamera
simpleCamera(
const Matrix34& P);
140 template <
typename T>
SimpleCamera(const Vector &v)
Init from vector, can be 6D (default calibration) or dim.
Definition: SimpleCamera.h:99
The most common 5DOF 3D->2D calibration.
SimpleCamera::shared_ptr clone() const
Copy this object as its actual derived type.
Definition: SimpleCamera.h:109
SimpleCamera(const Pose3 &pose)
constructor with pose
Definition: SimpleCamera.h:50
Both ManifoldTraits and Testable.
Definition: Manifold.h:120
Definition: PinholeCamera.h:33
SimpleCamera(const Pose3 &pose, const Cal3_S2 &K)
constructor with pose and calibration
Definition: SimpleCamera.h:55
SimpleCamera(const Vector &v, const Vector &K)
Init from Vector and calibration.
Definition: SimpleCamera.h:104
Base class for all pinhole cameras.
static SimpleCamera Level(const Cal3_S2 &K, const Pose2 &pose2, double height)
Create a level camera at the given 2D pose and height.
Definition: SimpleCamera.h:70
Definition: BearingRange.h:193
Definition: SimpleCamera.h:34
static SimpleCamera Lookat(const Point3 &eye, const Point3 &target, const Point3 &upVector, const Cal3_S2 &K=Cal3_S2())
Create a camera at the given eye position looking at a target point in the scene with the specified u...
Definition: SimpleCamera.h:89
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition: concepts.h:30
Definition: BearingRange.h:39
static SimpleCamera Level(const Pose2 &pose2, double height)
PinholeCamera::level with default calibration.
Definition: SimpleCamera.h:76
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
SimpleCamera simpleCamera(const Matrix34 &P)
Recover camera from 3*4 camera matrix.
Definition: SimpleCamera.cpp:24
SimpleCamera retract(const Vector &d) const
move a cameras according to d
Definition: SimpleCamera.h:117
gtsam::PinholeCamera< gtsam::Cal3_S2 > PinholeCameraCal3_S2
A simple camera class with a Cal3_S2 calibration.
Definition: SimpleCamera.h:28
SimpleCamera()
default constructor
Definition: SimpleCamera.h:45