37 typedef boost::shared_ptr<SimpleCamera> shared_ptr;
109 SimpleCamera::shared_ptr
clone()
const {
return boost::make_shared<SimpleCamera>(*this); }
118 if ((
size_t) d.size() == 6)
140 template <
typename T>
The most common 5DOF 3D->2D calibration.
Definition: BearingRange.h:38
static SimpleCamera Level(const Pose2 &pose2, double height)
PinholeCamera::level with default calibration.
Definition: SimpleCamera.h:76
SimpleCamera(const Pose3 &pose, const Cal3_S2 &K)
constructor with pose and calibration
Definition: SimpleCamera.h:55
Definition: SimpleCamera.h:34
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
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
size_t dim() const
Definition: PinholeCamera.h:186
static Pose3 LookatPose(const Point3 &eye, const Point3 &target, const Point3 &upVector)
Create a camera pose at the given eye position looking at a target point in the scene with the specif...
Definition: CalibratedCamera.cpp:58
Both ManifoldTraits and Testable.
Definition: Manifold.h:120
const Calibration & calibration() const
return calibration
Definition: PinholeCamera.h:177
Base class for all pinhole cameras.
SimpleCamera(const Vector &v, const Vector &K)
Init from Vector and calibration.
Definition: SimpleCamera.h:104
SimpleCamera()
default constructor
Definition: SimpleCamera.h:45
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: PinholeCamera.h:33
SimpleCamera(const Vector &v)
Init from vector, can be 6D (default calibration) or dim.
Definition: SimpleCamera.h:99
Definition: BearingRange.h:123
SimpleCamera(const Pose3 &pose)
constructor with pose
Definition: SimpleCamera.h:50
const Pose3 & pose() const
return pose
Definition: PinholeCamera.h:163
SimpleCamera::shared_ptr clone() const
Copy this object as its actual derived type.
Definition: SimpleCamera.h:109
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
Class retract(const TangentVector &v) const
retract as required by manifold concept: applies v at *this
Definition: Lie.h:133
SimpleCamera simpleCamera(const Matrix34 &P)
Recover camera from 3*4 camera matrix.
Definition: SimpleCamera.cpp:24
static Pose3 LevelPose(const Pose2 &pose2, double height)
Create a level pose at the given 2D pose and height.
Definition: CalibratedCamera.cpp:49
Global functions in a separate testing namespace.
Definition: chartTesting.h:28