stnamjef / page_dewarp

faster page_dewarp in C++
GNU Lesser General Public License v2.1
28 stars 7 forks source link

objective and objective2 not declared in the scope #6

Closed clarkk closed 2 years ago

clarkk commented 2 years ago

I'm trying to get your code working but at some point objective is not declared

In page_dewarp.h at line 516 you call the praxis method, but the last argument objective is not declared in the scope

praxis(0.001, 0.001, p.size, 0, p.data, dst_pts, p, objective);

The next method in page_warp.h at line 522 is called objective though, so I guess the result from this method should to be passed as the last argument objective but what arguments are passed to the method objective?

double objective(double* dta, int s, const vector<Point2d>& dst_pts, Params& p)

The same issue occurs with the objective2 argument at line 611 and again the next method is called objective2, but what arguments have to be passed to objective2?