gtsam
Loading...
Searching...
No Matches
gtsam::StereoPoint2 Class Reference

Detailed Description

A 2D stereo point, v will be same for rectified images.

Standard Constructors

 StereoPoint2 ()
 default constructor
 StereoPoint2 (double uL, double uR, double v)
 uL and uR represent the x-axis value of left and right frame coordinates respectively.
 StereoPoint2 (const Vector3 &v)
 construct from 3D vector

Testable

void print (const std::string &s="") const
 print
bool equals (const StereoPoint2 &q, double tol=1e-9) const
 equals

Group

StereoPoint2 operator- () const
 inverse
StereoPoint2 operator+ (const Vector3 &v) const
 add vector on right
StereoPoint2 operator+ (const StereoPoint2 &b) const
 add
StereoPoint2 operator- (const StereoPoint2 &b) const
 subtract
static StereoPoint2 Identity ()
 identity

Standard Interface

bool operator== (const StereoPoint2 &q) const
 equality
double uL () const
 get uL
double uR () const
 get uR
double v () const
 get v
Vector3 vector () const
 convert to vector
Point2 point2 () const
 convenient function to get a Point2 from the left image
Point2 right () const
 convenient function to get a Point2 from the right image
GTSAM_EXPORT friend std::ostream & operator<< (std::ostream &os, const StereoPoint2 &p)
 Streaming.

Static Public Attributes

static constexpr auto dimension = 3

Constructor & Destructor Documentation

◆ StereoPoint2()

gtsam::StereoPoint2::StereoPoint2 ( double uL,
double uR,
double v )
inline

uL and uR represent the x-axis value of left and right frame coordinates respectively.

v represents the y coordinate value. The y-axis value should be the same under the stereo constraint.


The documentation for this class was generated from the following files: