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?
I'm trying to get your code working but at some point
objective
is not declaredIn
page_dewarp.h
at line 516 you call thepraxis
method, but the last argumentobjective
is not declared in the scopeThe next method in
page_warp.h
at line 522 is calledobjective
though, so I guess the result from this method should to be passed as the last argumentobjective
but what arguments are passed to the methodobjective
?The same issue occurs with the
objective2
argument at line 611 and again the next method is calledobjective2
, but what arguments have to be passed toobjective2
?