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)
boost::shared_ptr< Cal3_S2Stereo > shared_ptr
static const Pose3 pose1(Rot3(), Point3(0, 1, 0.5))
A Stereo Camera based on two Simple Cameras.
StereoPoint2 project(const Point3 &point) const
Project 3D point to StereoPoint2 (uL,uR,v)
const Point3 point1(3.0, 4.0, 2.0)
static const CalibratedCamera camera(kDefaultPose)