tesseract  4.0.0-1-g2a2b
tesseract::AssociateStats Struct Reference

#include <associate.h>

Public Member Functions

 AssociateStats ()
 
void Clear ()
 
void Print ()
 

Public Attributes

float shape_cost
 
bool bad_shape
 
float full_wh_ratio
 
float full_wh_ratio_total
 
float full_wh_ratio_var
 
bool bad_fixed_pitch_right_gap
 
bool bad_fixed_pitch_wh_ratio
 
int gap_sum
 

Detailed Description

Definition at line 36 of file associate.h.

Constructor & Destructor Documentation

◆ AssociateStats()

tesseract::AssociateStats::AssociateStats ( )
inline

Definition at line 37 of file associate.h.

37 { Clear(); }

Member Function Documentation

◆ Clear()

void tesseract::AssociateStats::Clear ( )
inline

Definition at line 39 of file associate.h.

39  {
40  shape_cost = 0.0f;
41  bad_shape = false;
42  full_wh_ratio = 0.0f;
43  full_wh_ratio_total = 0.0f;
44  full_wh_ratio_var = 0.0f;
47  gap_sum = 0;
48  }

◆ Print()

void tesseract::AssociateStats::Print ( )
inline

Definition at line 50 of file associate.h.

50 { tprintf("AssociateStats: s(%g %d)\n", shape_cost, bad_shape); }
DLLSYM void tprintf(const char *format,...)
Definition: tprintf.cpp:37

Member Data Documentation

◆ bad_fixed_pitch_right_gap

bool tesseract::AssociateStats::bad_fixed_pitch_right_gap

Definition at line 58 of file associate.h.

◆ bad_fixed_pitch_wh_ratio

bool tesseract::AssociateStats::bad_fixed_pitch_wh_ratio

Definition at line 60 of file associate.h.

◆ bad_shape

bool tesseract::AssociateStats::bad_shape

Definition at line 53 of file associate.h.

◆ full_wh_ratio

float tesseract::AssociateStats::full_wh_ratio

Definition at line 54 of file associate.h.

◆ full_wh_ratio_total

float tesseract::AssociateStats::full_wh_ratio_total

Definition at line 55 of file associate.h.

◆ full_wh_ratio_var

float tesseract::AssociateStats::full_wh_ratio_var

Definition at line 57 of file associate.h.

◆ gap_sum

int tesseract::AssociateStats::gap_sum

Definition at line 62 of file associate.h.

◆ shape_cost

float tesseract::AssociateStats::shape_cost

Definition at line 52 of file associate.h.


The documentation for this struct was generated from the following file: