tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::DPPoint Class Reference

#include <dppoint.h>

Collaboration diagram for tesseract::DPPoint:

Public Types

typedef int64_t(DPPoint::* CostFunc) (const DPPoint *prev)
 

Public Member Functions

 DPPoint ()
 
int64_t CostWithVariance (const DPPoint *prev)
 
int total_cost () const
 
int Pathlength () const
 
const DPPointbest_prev () const
 
void AddLocalCost (int new_cost)
 

Static Public Member Functions

static DPPointSolve (int min_step, int max_step, bool debug, CostFunc cost_func, int size, DPPoint *points)
 

Private Member Functions

void UpdateIfBetter (int64_t cost, int32_t steps, const DPPoint *prev, int32_t n, int32_t sig_x, int64_t sig_xsq)
 

Private Attributes

int32_t local_cost_
 
int32_t total_cost_
 
int32_t total_steps_
 
const DPPointbest_prev_
 
int32_t n_
 
int32_t sig_x_
 
int64_t sig_xsq_
 

Member Typedef Documentation

◆ CostFunc

typedef int64_t(DPPoint::* tesseract::DPPoint::CostFunc) (const DPPoint *prev)

Constructor & Destructor Documentation

◆ DPPoint()

tesseract::DPPoint::DPPoint ( )
inline

Member Function Documentation

◆ AddLocalCost()

void tesseract::DPPoint::AddLocalCost ( int  new_cost)
inline

◆ best_prev()

const DPPoint* tesseract::DPPoint::best_prev ( ) const
inline

◆ CostWithVariance()

int64_t tesseract::DPPoint::CostWithVariance ( const DPPoint prev)

◆ Pathlength()

int tesseract::DPPoint::Pathlength ( ) const
inline

◆ Solve()

DPPoint * tesseract::DPPoint::Solve ( int  min_step,
int  max_step,
bool  debug,
CostFunc  cost_func,
int  size,
DPPoint points 
)
static

◆ total_cost()

int tesseract::DPPoint::total_cost ( ) const
inline

◆ UpdateIfBetter()

void tesseract::DPPoint::UpdateIfBetter ( int64_t  cost,
int32_t  steps,
const DPPoint prev,
int32_t  n,
int32_t  sig_x,
int64_t  sig_xsq 
)
private

Member Data Documentation

◆ best_prev_

const DPPoint* tesseract::DPPoint::best_prev_
private

◆ local_cost_

int32_t tesseract::DPPoint::local_cost_
private

◆ n_

int32_t tesseract::DPPoint::n_
private

◆ sig_x_

int32_t tesseract::DPPoint::sig_x_
private

◆ sig_xsq_

int64_t tesseract::DPPoint::sig_xsq_
private

◆ total_cost_

int32_t tesseract::DPPoint::total_cost_
private

◆ total_steps_

int32_t tesseract::DPPoint::total_steps_
private

The documentation for this class was generated from the following files: