24 using namespace gtsam;
36 Matrix computed1, computed2;
37 long timeLog = clock();
38 for(
int i = 0;
i <
n;
i++)
39 camera.
project(point1, computed1, computed2);
40 long timeLog2 = clock();
41 double seconds = (double)(timeLog2-timeLog)/CLOCKS_PER_SEC;
42 cout << ((double)n/seconds) <<
" calls/second" << endl;
43 cout << ((double)seconds*1000000/n) <<
" musecs/call" << endl;
static Cal3_S2 K(500, 500, 0.1, 640/2, 480/2)
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
The most common 5DOF 3D->2D calibration, stereo version.
StereoPoint2 project(const Point3 &point) const
Project 3D point to StereoPoint2 (uL,uR,v)
std::shared_ptr< Cal3_S2Stereo > shared_ptr
static const Pose3 pose1(Rot3(), Point3(0, 1, 0.5))
A Stereo Camera based on two Simple Cameras.
const Point3 point1(3.0, 4.0, 2.0)
static const CalibratedCamera camera(kDefaultPose)