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

#include <baselinedetect.h>

Collaboration diagram for tesseract::BaselineRow:

Public Member Functions

 BaselineRow (double line_size, TO_ROW *to_row)
 
const TBOXbounding_box () const
 
void SetupOldLineParameters (TO_ROW *row) const
 
void Print () const
 
double BaselineAngle () const
 
double SpaceBetween (const BaselineRow &other) const
 
double PerpDisp (const FCOORD &direction) const
 
double StraightYAtX (double x) const
 
bool FitBaseline (bool use_box_bottoms)
 
void AdjustBaselineToParallel (int debug, const FCOORD &direction)
 
double AdjustBaselineToGrid (int debug, const FCOORD &direction, double line_spacing, double line_offset)
 

Private Member Functions

void SetupBlobDisplacements (const FCOORD &direction)
 
void FitConstrainedIfBetter (int debug, const FCOORD &direction, double cheat_allowance, double target_offset)
 
double PerpDistanceFromBaseline (const FCOORD &pt) const
 
void ComputeBoundingBox ()
 

Private Attributes

BLOBNBOX_LIST * blobs_
 
TBOX bounding_box_
 
DetLineFit fitter_
 
FCOORD baseline_pt1_
 
FCOORD baseline_pt2_
 
GenericVector< double > displacement_modes_
 
double disp_quant_factor_
 
double fit_halfrange_
 
double max_baseline_error_
 
double baseline_error_
 
bool good_baseline_
 

Constructor & Destructor Documentation

◆ BaselineRow()

tesseract::BaselineRow::BaselineRow ( double  line_size,
TO_ROW to_row 
)

Member Function Documentation

◆ AdjustBaselineToGrid()

double tesseract::BaselineRow::AdjustBaselineToGrid ( int  debug,
const FCOORD direction,
double  line_spacing,
double  line_offset 
)

◆ AdjustBaselineToParallel()

void tesseract::BaselineRow::AdjustBaselineToParallel ( int  debug,
const FCOORD direction 
)

◆ BaselineAngle()

double tesseract::BaselineRow::BaselineAngle ( ) const

◆ bounding_box()

const TBOX& tesseract::BaselineRow::bounding_box ( ) const
inline

◆ ComputeBoundingBox()

void tesseract::BaselineRow::ComputeBoundingBox ( )
private

◆ FitBaseline()

bool tesseract::BaselineRow::FitBaseline ( bool  use_box_bottoms)

◆ FitConstrainedIfBetter()

void tesseract::BaselineRow::FitConstrainedIfBetter ( int  debug,
const FCOORD direction,
double  cheat_allowance,
double  target_offset 
)
private

◆ PerpDisp()

double tesseract::BaselineRow::PerpDisp ( const FCOORD direction) const

◆ PerpDistanceFromBaseline()

double tesseract::BaselineRow::PerpDistanceFromBaseline ( const FCOORD pt) const
private

◆ Print()

void tesseract::BaselineRow::Print ( ) const

◆ SetupBlobDisplacements()

void tesseract::BaselineRow::SetupBlobDisplacements ( const FCOORD direction)
private

◆ SetupOldLineParameters()

void tesseract::BaselineRow::SetupOldLineParameters ( TO_ROW row) const

◆ SpaceBetween()

double tesseract::BaselineRow::SpaceBetween ( const BaselineRow other) const

◆ StraightYAtX()

double tesseract::BaselineRow::StraightYAtX ( double  x) const

Member Data Documentation

◆ baseline_error_

double tesseract::BaselineRow::baseline_error_
private

◆ baseline_pt1_

FCOORD tesseract::BaselineRow::baseline_pt1_
private

◆ baseline_pt2_

FCOORD tesseract::BaselineRow::baseline_pt2_
private

◆ blobs_

BLOBNBOX_LIST* tesseract::BaselineRow::blobs_
private

◆ bounding_box_

TBOX tesseract::BaselineRow::bounding_box_
private

◆ disp_quant_factor_

double tesseract::BaselineRow::disp_quant_factor_
private

◆ displacement_modes_

GenericVector<double> tesseract::BaselineRow::displacement_modes_
private

◆ fit_halfrange_

double tesseract::BaselineRow::fit_halfrange_
private

◆ fitter_

DetLineFit tesseract::BaselineRow::fitter_
private

◆ good_baseline_

bool tesseract::BaselineRow::good_baseline_
private

◆ max_baseline_error_

double tesseract::BaselineRow::max_baseline_error_
private

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