Time ternary version as well
parent
e4392c0a3b
commit
982dc29d2f
|
@ -58,9 +58,13 @@ int main() {
|
||||||
// BADFactor
|
// BADFactor
|
||||||
// Oct 3, 2014, Macbook Air
|
// Oct 3, 2014, Macbook Air
|
||||||
// 20.3 musecs/call
|
// 20.3 musecs/call
|
||||||
BADFactor<Point2> newFactor2(model, z,
|
#define TERNARY
|
||||||
uncalibrate(K, project(transform_to(x, p))));
|
#ifdef TERNARY
|
||||||
time(newFactor2, values);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue