20#ifndef TESSERACT_CCSTRUCT_DPPOINT_H_
21#define TESSERACT_CCSTRUCT_DPPOINT_H_
53 total_cost_(INT32_MAX),
65 static DPPoint*
Solve(
int min_step,
int max_step,
bool debug,
82 local_cost_ += new_cost;
89 void UpdateIfBetter(int64_t cost, int32_t steps,
const DPPoint* prev,
90 int32_t n, int32_t sig_x, int64_t sig_xsq);
void AddLocalCost(int new_cost)
static DPPoint * Solve(int min_step, int max_step, bool debug, CostFunc cost_func, int size, DPPoint *points)
const DPPoint * best_prev() const
int64_t CostWithVariance(const DPPoint *prev)
int64_t(DPPoint::*)(const DPPoint *) CostFunc