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

#include <blobbox.h>

Inheritance diagram for TO_ROW:
Collaboration diagram for TO_ROW:

Public Member Functions

 TO_ROW ()
 
 TO_ROW (BLOBNBOX *blob, float top, float bottom, float row_size)
 
void print () const
 
float max_y () const
 
float min_y () const
 
float mean_y () const
 
float initial_min_y () const
 
float line_m () const
 
float line_c () const
 
float line_error () const
 
float parallel_c () const
 
float parallel_error () const
 
float believability () const
 
float intercept () const
 
void add_blob (BLOBNBOX *blob, float top, float bottom, float row_size)
 
void insert_blob (BLOBNBOX *blob)
 
BLOBNBOX_LIST * blob_list ()
 
void set_line (float new_m, float new_c, float new_error)
 
void set_parallel_line (float gradient, float new_c, float new_error)
 
void set_limits (float new_min, float new_max)
 
void compute_vertical_projection ()
 
bool rep_chars_marked () const
 
void clear_rep_chars_marked ()
 
int num_repeated_sets () const
 
void set_num_repeated_sets (int num_sets)
 

Public Attributes

bool merged
 
bool all_caps
 
bool used_dm_model
 
int16_t projection_left
 
int16_t projection_right
 
PITCH_TYPE pitch_decision
 
float fixed_pitch
 
float fp_space
 
float fp_nonsp
 
float pr_space
 
float pr_nonsp
 
float spacing
 
float xheight
 
int xheight_evidence
 
float ascrise
 
float descdrop
 
float body_size
 
int32_t min_space
 
int32_t max_nonspace
 
int32_t space_threshold
 
float kern_size
 
float space_size
 
WERD_LIST rep_words
 
ICOORDELT_LIST char_cells
 
QSPLINE baseline
 
STATS projection
 

Static Public Attributes

static const int kErrorWeight = 3
 

Private Member Functions

void clear ()
 

Private Attributes

BLOBNBOX_LIST blobs
 
float y_min
 
float y_max
 
float initial_y_min
 
float m
 
float c
 
float error
 
float para_c
 
float para_error
 
float y_origin
 
float credibility
 
int num_repeated_sets_
 

Constructor & Destructor Documentation

◆ TO_ROW() [1/2]

TO_ROW::TO_ROW ( )
inline

◆ TO_ROW() [2/2]

TO_ROW::TO_ROW ( BLOBNBOX blob,
float  top,
float  bottom,
float  row_size 
)

Member Function Documentation

◆ add_blob()

void TO_ROW::add_blob ( BLOBNBOX blob,
float  top,
float  bottom,
float  row_size 
)

◆ believability()

float TO_ROW::believability ( ) const
inline

◆ blob_list()

BLOBNBOX_LIST* TO_ROW::blob_list ( )
inline

◆ clear()

void TO_ROW::clear ( )
private

◆ clear_rep_chars_marked()

void TO_ROW::clear_rep_chars_marked ( )
inline

◆ compute_vertical_projection()

void TO_ROW::compute_vertical_projection ( )

◆ initial_min_y()

float TO_ROW::initial_min_y ( ) const
inline

◆ insert_blob()

void TO_ROW::insert_blob ( BLOBNBOX blob)

◆ intercept()

float TO_ROW::intercept ( ) const
inline

◆ line_c()

float TO_ROW::line_c ( ) const
inline

◆ line_error()

float TO_ROW::line_error ( ) const
inline

◆ line_m()

float TO_ROW::line_m ( ) const
inline

◆ max_y()

float TO_ROW::max_y ( ) const
inline

◆ mean_y()

float TO_ROW::mean_y ( ) const
inline

◆ min_y()

float TO_ROW::min_y ( ) const
inline

◆ num_repeated_sets()

int TO_ROW::num_repeated_sets ( ) const
inline

◆ parallel_c()

float TO_ROW::parallel_c ( ) const
inline

◆ parallel_error()

float TO_ROW::parallel_error ( ) const
inline

◆ print()

void TO_ROW::print ( ) const

◆ rep_chars_marked()

bool TO_ROW::rep_chars_marked ( ) const
inline

◆ set_limits()

void TO_ROW::set_limits ( float  new_min,
float  new_max 
)
inline

◆ set_line()

void TO_ROW::set_line ( float  new_m,
float  new_c,
float  new_error 
)
inline

◆ set_num_repeated_sets()

void TO_ROW::set_num_repeated_sets ( int  num_sets)
inline

◆ set_parallel_line()

void TO_ROW::set_parallel_line ( float  gradient,
float  new_c,
float  new_error 
)
inline

Member Data Documentation

◆ all_caps

bool TO_ROW::all_caps

◆ ascrise

float TO_ROW::ascrise

◆ baseline

QSPLINE TO_ROW::baseline

◆ blobs

BLOBNBOX_LIST TO_ROW::blobs
private

◆ body_size

float TO_ROW::body_size

◆ c

float TO_ROW::c
private

◆ char_cells

ICOORDELT_LIST TO_ROW::char_cells

◆ credibility

float TO_ROW::credibility
private

◆ descdrop

float TO_ROW::descdrop

◆ error

float TO_ROW::error
private

◆ fixed_pitch

float TO_ROW::fixed_pitch

◆ fp_nonsp

float TO_ROW::fp_nonsp

◆ fp_space

float TO_ROW::fp_space

◆ initial_y_min

float TO_ROW::initial_y_min
private

◆ kern_size

float TO_ROW::kern_size

◆ kErrorWeight

const int TO_ROW::kErrorWeight = 3
static

◆ m

float TO_ROW::m
private

◆ max_nonspace

int32_t TO_ROW::max_nonspace

◆ merged

bool TO_ROW::merged

◆ min_space

int32_t TO_ROW::min_space

◆ num_repeated_sets_

int TO_ROW::num_repeated_sets_
private

◆ para_c

float TO_ROW::para_c
private

◆ para_error

float TO_ROW::para_error
private

◆ pitch_decision

PITCH_TYPE TO_ROW::pitch_decision

◆ pr_nonsp

float TO_ROW::pr_nonsp

◆ pr_space

float TO_ROW::pr_space

◆ projection

STATS TO_ROW::projection

◆ projection_left

int16_t TO_ROW::projection_left

◆ projection_right

int16_t TO_ROW::projection_right

◆ rep_words

WERD_LIST TO_ROW::rep_words

◆ space_size

float TO_ROW::space_size

◆ space_threshold

int32_t TO_ROW::space_threshold

◆ spacing

float TO_ROW::spacing

◆ used_dm_model

bool TO_ROW::used_dm_model

◆ xheight

float TO_ROW::xheight

◆ xheight_evidence

int TO_ROW::xheight_evidence

◆ y_max

float TO_ROW::y_max
private

◆ y_min

float TO_ROW::y_min
private

◆ y_origin

float TO_ROW::y_origin
private

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