20 #ifndef TESSERACT_CCSTRUCT_DPPOINT_H_ 21 #define TESSERACT_CCSTRUCT_DPPOINT_H_ 61 static DPPoint*
Solve(
int min_step,
int max_step,
bool debug,
86 int32_t n, int32_t sig_x, int64_t sig_xsq);
101 #endif // TESSERACT_CCSTRUCT_DPPOINT_H_ int32_t total_cost_
Definition: dppoint.h:89
void UpdateIfBetter(int64_t cost, int32_t steps, const DPPoint *prev, int32_t n, int32_t sig_x, int64_t sig_xsq)
Definition: dppoint.cpp:86
int total_cost() const
Definition: dppoint.h:68
int64_t(DPPoint::* CostFunc)(const DPPoint *prev)
Definition: dppoint.h:49
int64_t sig_xsq_
Definition: dppoint.h:96
int32_t sig_x_
Definition: dppoint.h:95
int32_t total_steps_
Definition: dppoint.h:91
int Pathlength() const
Definition: dppoint.h:71
Definition: baseapi.cpp:94
const DPPoint * best_prev_
Definition: dppoint.h:92
int32_t n_
Definition: dppoint.h:94
const DPPoint * best_prev() const
Definition: dppoint.h:74
int32_t local_cost_
Definition: dppoint.h:88
static DPPoint * Solve(int min_step, int max_step, bool debug, CostFunc cost_func, int size, DPPoint *points)
Definition: dppoint.cpp:31
void AddLocalCost(int new_cost)
Definition: dppoint.h:77
int64_t CostWithVariance(const DPPoint *prev)
Definition: dppoint.cpp:69
DPPoint()
Definition: dppoint.h:51