20 #ifndef TESSERACT_CCSTRUCT_DPPOINT_H__ 21 #define TESSERACT_CCSTRUCT_DPPOINT_H__ 52 : local_cost_(0), total_cost_(
MAX_INT32), total_steps_(1), best_prev_(NULL),
53 n_(0), sig_x_(0), sig_xsq_(0) {
61 static DPPoint*
Solve(
int min_step,
int max_step,
bool debug,
78 local_cost_ += new_cost;
101 #endif // TESSERACT_CCSTRUCT_DPPOINT_H__
inT64 CostWithVariance(const DPPoint *prev)
void AddLocalCost(int new_cost)
inT64(DPPoint::* CostFunc)(const DPPoint *prev)
static DPPoint * Solve(int min_step, int max_step, bool debug, CostFunc cost_func, int size, DPPoint *points)
const DPPoint * best_prev() const