Time ternary version as well
parent
e4392c0a3b
commit
982dc29d2f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue