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

#include <quspline.h>

Collaboration diagram for QSPLINE:

Public Member Functions

 QSPLINE ()
 
 QSPLINE (const QSPLINE &src)
 
 QSPLINE (int32_t count, int32_t *xstarts, double *coeffs)
 
 ~QSPLINE ()
 
 QSPLINE (int xstarts[], int segcount, int xcoords[], int ycoords[], int blobcount, int degree)
 
double step (double x1, double x2)
 
double y (double x) const
 
void move (ICOORD vec)
 
bool overlap (QSPLINE *spline2, double fraction)
 
void extrapolate (double gradient, int left, int right)
 
void plot (ScrollView *window, ScrollView::Color colour) const
 
void plot (Pix *pix) const
 
QSPLINEoperator= (const QSPLINE &source)
 

Private Member Functions

int32_t spline_index (double x) const
 

Private Attributes

int32_t segments
 
int32_t * xcoords
 
QUAD_COEFFSquadratics
 

Friends

void make_first_baseline (TBOX *, int, int *, int *, QSPLINE *, QSPLINE *, float)
 
void make_holed_baseline (TBOX *, int, QSPLINE *, QSPLINE *, float)
 
void tweak_row_baseline (ROW *, double, double)
 

Constructor & Destructor Documentation

◆ QSPLINE() [1/4]

QSPLINE::QSPLINE ( )
inline

◆ QSPLINE() [2/4]

QSPLINE::QSPLINE ( const QSPLINE src)

◆ QSPLINE() [3/4]

QSPLINE::QSPLINE ( int32_t  count,
int32_t *  xstarts,
double *  coeffs 
)

◆ ~QSPLINE()

QSPLINE::~QSPLINE ( )

◆ QSPLINE() [4/4]

QSPLINE::QSPLINE ( int  xstarts[],
int  segcount,
int  xcoords[],
int  ycoords[],
int  blobcount,
int  degree 
)

Member Function Documentation

◆ extrapolate()

void QSPLINE::extrapolate ( double  gradient,
int  left,
int  right 
)

◆ move()

void QSPLINE::move ( ICOORD  vec)

◆ operator=()

QSPLINE & QSPLINE::operator= ( const QSPLINE source)

◆ overlap()

bool QSPLINE::overlap ( QSPLINE spline2,
double  fraction 
)

◆ plot() [1/2]

void QSPLINE::plot ( ScrollView window,
ScrollView::Color  colour 
) const

◆ plot() [2/2]

void QSPLINE::plot ( Pix *  pix) const

◆ spline_index()

int32_t QSPLINE::spline_index ( double  x) const
private

◆ step()

double QSPLINE::step ( double  x1,
double  x2 
)

◆ y()

double QSPLINE::y ( double  x) const

Friends And Related Function Documentation

◆ make_first_baseline

void make_first_baseline ( TBOX ,
int  ,
int *  ,
int *  ,
QSPLINE ,
QSPLINE ,
float   
)
friend

◆ make_holed_baseline

void make_holed_baseline ( TBOX ,
int  ,
QSPLINE ,
QSPLINE ,
float   
)
friend

◆ tweak_row_baseline

void tweak_row_baseline ( ROW ,
double  ,
double   
)
friend

Member Data Documentation

◆ quadratics

QUAD_COEFFS* QSPLINE::quadratics
private

◆ segments

int32_t QSPLINE::segments
private

◆ xcoords

int32_t* QSPLINE::xcoords
private

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