Time ternary version as well

release/4.3a0
dellaert 2014-10-07 18:10:53 +02:00
parent e4392c0a3b
commit 982dc29d2f
1 changed files with 7 additions and 3 deletions

View File

@ -58,9 +58,13 @@ int main() {
// BADFactor
// Oct 3, 2014, Macbook Air
// 20.3 musecs/call
BADFactor<Point2> newFactor2(model, z,
uncalibrate(K, project(transform_to(x, p))));
time(newFactor2, values);
#define TERNARY
#ifdef TERNARY
BADFactor<Point2> f(model, z, project3(x, p, K));
#else
BADFactor<Point2> f(model, z, uncalibrate(K, project(transform_to(x, p))));
#endif
time(f, values);
return 0;
}