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, {});
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)
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
Base class for all pinhole cameras.
static Point2 measurement(323.0, 240.0)
Point2 project(const Point3 &pw, OptionalJacobian< 2, 6 > Dpose={}, OptionalJacobian< 2, 3 > Dpoint={}, OptionalJacobian< 2, DimK > Dcal={}) const
project a 3D point from world coordinates into the image
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static const Pose3 pose1(Rot3(), Point3(0, 1, 0.5))
Calibration used by Bundler.
const Point3 point1(3.0, 4.0, 2.0)
static const CalibratedCamera camera(kDefaultPose)
Calibration used by Bundler.