25 using namespace gtsam;
54 long timeLog = clock();
55 for(
int i = 0;
i <
n;
i++)
57 long timeLog2 = clock();
58 double seconds = (double)(timeLog2-timeLog)/CLOCKS_PER_SEC;
59 cout << ((double)seconds*1e9/n) <<
" nanosecs/call" << endl;
64 long timeLog = clock();
66 for(
int i = 0;
i <
n;
i++)
68 long timeLog2 = clock();
69 double seconds = (double)(timeLog2-timeLog)/CLOCKS_PER_SEC;
70 cout << ((double)seconds*1e9/n) <<
" nanosecs/call" << endl;
85 long timeLog = clock();
86 for(
int i = 0;
i <
n;
i++)
87 camera.
project(point1, Dpose, Dpoint, boost::none);
88 long timeLog2 = clock();
89 double seconds = (double)(timeLog2-timeLog)/CLOCKS_PER_SEC;
90 cout << ((double)seconds*1e9/n) <<
" nanosecs/call" << endl;
104 Matrix Dpose, Dpoint, Dcal;
105 long timeLog = clock();
106 for(
int i = 0;
i <
n;
i++)
107 camera.
project(point1, Dpose, Dpoint, Dcal);
108 long timeLog2 = clock();
109 double seconds = (double)(timeLog2-timeLog)/CLOCKS_PER_SEC;
110 cout << ((double)seconds*1e9/n) <<
" nanosecs/call" << endl;
static Cal3_S2 K(500, 500, 0.1, 640/2, 480/2)
Base class for all pinhole cameras.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static const Pose3 pose1(Rot3(), Point3(0, 1, 0.5))
Point2 project(const Point3 &pw, OptionalJacobian< 2, 6 > Dpose=boost::none, OptionalJacobian< 2, 3 > Dpoint=boost::none, OptionalJacobian< 2, DimK > Dcal=boost::none) const
project a 3D point from world coordinates into the image
const Point3 point1(3.0, 4.0, 2.0)
static const CalibratedCamera camera(kDefaultPose)
Calibration used by Bundler.