/home/rays/src/opensrc/tesseract-ocr/textord/fpchop.h File Reference

#include "params.h"
#include "blobbox.h"
#include "notdll.h"

Go to the source code of this file.

Classes

class  C_OUTLINE_FRAG

Functions

ROWfixed_pitch_words (TO_ROW *row, FCOORD rotation)
WERDadd_repeated_word (WERD_IT *rep_it, inT16 &rep_left, inT16 &prev_chop_coord, uinT8 &blanks, float pitch, WERD_IT *word_it)
void split_to_blob (BLOBNBOX *blob, inT16 chop_coord, float pitch_error, C_OUTLINE_LIST *left_coutlines, C_OUTLINE_LIST *right_coutlines)
void fixed_chop_cblob (C_BLOB *blob, inT16 chop_coord, float pitch_error, C_OUTLINE_LIST *left_outlines, C_OUTLINE_LIST *right_outlines)
void fixed_split_coutline (C_OUTLINE *srcline, inT16 chop_coord, float pitch_error, C_OUTLINE_IT *left_it, C_OUTLINE_IT *right_it)
BOOL8 fixed_chop_coutline (C_OUTLINE *srcline, inT16 chop_coord, float pitch_error, C_OUTLINE_FRAG_LIST *left_frags, C_OUTLINE_FRAG_LIST *right_frags)
inT16 next_anti_left_seg (C_OUTLINE *srcline, inT16 tail_index, inT16 startindex, inT32 length, inT16 chop_coord, float pitch_error, ICOORD *tail_pos)
inT16 next_anti_right_seg (C_OUTLINE *srcline, inT16 tail_index, inT16 startindex, inT32 length, inT16 chop_coord, float pitch_error, ICOORD *tail_pos)
inT16 next_clock_left_seg (C_OUTLINE *srcline, inT16 tail_index, inT16 startindex, inT32 length, inT16 chop_coord, float pitch_error, ICOORD *tail_pos)
inT16 next_clock_right_seg (C_OUTLINE *srcline, inT16 tail_index, inT16 startindex, inT32 length, inT16 chop_coord, float pitch_error, ICOORD *tail_pos)
void save_chop_cfragment (inT16 head_index, ICOORD head_pos, inT16 tail_index, ICOORD tail_pos, C_OUTLINE *srcline, C_OUTLINE_FRAG_LIST *frags)
void add_frag_to_list (C_OUTLINE_FRAG *frag, C_OUTLINE_FRAG_LIST *frags)
void close_chopped_cfragments (C_OUTLINE_FRAG_LIST *frags, C_OUTLINE_LIST *children, float pitch_error, C_OUTLINE_IT *dest_it)
C_OUTLINEjoin_chopped_fragments (C_OUTLINE_FRAG *bottom, C_OUTLINE_FRAG *top)
void join_segments (C_OUTLINE_FRAG *bottom, C_OUTLINE_FRAG *top)

Variables

int textord_fp_chop_error = 2
double textord_fp_chop_snap = 0.5

Function Documentation

void add_frag_to_list ( C_OUTLINE_FRAG frag,
C_OUTLINE_FRAG_LIST *  frags 
)
WERD* add_repeated_word ( WERD_IT *  rep_it,
inT16 rep_left,
inT16 prev_chop_coord,
uinT8 blanks,
float  pitch,
WERD_IT *  word_it 
)
void close_chopped_cfragments ( C_OUTLINE_FRAG_LIST *  frags,
C_OUTLINE_LIST *  children,
float  pitch_error,
C_OUTLINE_IT *  dest_it 
)
void fixed_chop_cblob ( C_BLOB blob,
inT16  chop_coord,
float  pitch_error,
C_OUTLINE_LIST *  left_outlines,
C_OUTLINE_LIST *  right_outlines 
)
BOOL8 fixed_chop_coutline ( C_OUTLINE srcline,
inT16  chop_coord,
float  pitch_error,
C_OUTLINE_FRAG_LIST *  left_frags,
C_OUTLINE_FRAG_LIST *  right_frags 
)
ROW* fixed_pitch_words ( TO_ROW row,
FCOORD  rotation 
)
void fixed_split_coutline ( C_OUTLINE srcline,
inT16  chop_coord,
float  pitch_error,
C_OUTLINE_IT *  left_it,
C_OUTLINE_IT *  right_it 
)
C_OUTLINE* join_chopped_fragments ( C_OUTLINE_FRAG bottom,
C_OUTLINE_FRAG top 
)
void join_segments ( C_OUTLINE_FRAG bottom,
C_OUTLINE_FRAG top 
)
inT16 next_anti_left_seg ( C_OUTLINE srcline,
inT16  tail_index,
inT16  startindex,
inT32  length,
inT16  chop_coord,
float  pitch_error,
ICOORD tail_pos 
)
inT16 next_anti_right_seg ( C_OUTLINE srcline,
inT16  tail_index,
inT16  startindex,
inT32  length,
inT16  chop_coord,
float  pitch_error,
ICOORD tail_pos 
)
inT16 next_clock_left_seg ( C_OUTLINE srcline,
inT16  tail_index,
inT16  startindex,
inT32  length,
inT16  chop_coord,
float  pitch_error,
ICOORD tail_pos 
)
inT16 next_clock_right_seg ( C_OUTLINE srcline,
inT16  tail_index,
inT16  startindex,
inT32  length,
inT16  chop_coord,
float  pitch_error,
ICOORD tail_pos 
)
void save_chop_cfragment ( inT16  head_index,
ICOORD  head_pos,
inT16  tail_index,
ICOORD  tail_pos,
C_OUTLINE srcline,
C_OUTLINE_FRAG_LIST *  frags 
)
void split_to_blob ( BLOBNBOX blob,
inT16  chop_coord,
float  pitch_error,
C_OUTLINE_LIST *  left_coutlines,
C_OUTLINE_LIST *  right_coutlines 
)

Variable Documentation

"Max allowed bending of chop cells"

double textord_fp_chop_snap = 0.5

"Max distance of chop pt from vertex"

Generated on Thu Feb 2 08:19:22 2012 for Tesseract by  doxygen 1.6.3