tesseract
5.0.0-alpha-619-ge9db
|
#include "blobbox.h"
#include "statistc.h"
#include "drawtord.h"
#include "tovars.h"
#include "topitch.h"
#include "fpchop.h"
Go to the source code of this file.
Functions | |
ROW * | fixed_pitch_words (TO_ROW *row, FCOORD rotation) |
WERD * | add_repeated_word (WERD_IT *rep_it, int16_t &rep_left, int16_t &prev_chop_coord, uint8_t &blanks, float pitch, WERD_IT *word_it) |
void | split_to_blob (BLOBNBOX *blob, int16_t chop_coord, float pitch_error, C_OUTLINE_LIST *left_coutlines, C_OUTLINE_LIST *right_coutlines) |
void | fixed_chop_cblob (C_BLOB *blob, int16_t chop_coord, float pitch_error, C_OUTLINE_LIST *left_outlines, C_OUTLINE_LIST *right_outlines) |
void | fixed_split_coutline (C_OUTLINE *srcline, int16_t chop_coord, float pitch_error, C_OUTLINE_IT *left_it, C_OUTLINE_IT *right_it) |
bool | fixed_chop_coutline (C_OUTLINE *srcline, int16_t chop_coord, float pitch_error, C_OUTLINE_FRAG_LIST *left_frags, C_OUTLINE_FRAG_LIST *right_frags) |
void | save_chop_cfragment (int16_t head_index, ICOORD head_pos, int16_t 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_OUTLINE * | join_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 |
void add_frag_to_list | ( | C_OUTLINE_FRAG * | frag, |
C_OUTLINE_FRAG_LIST * | frags | ||
) |
Definition at line 592 of file fpchop.cpp.
WERD* add_repeated_word | ( | WERD_IT * | rep_it, |
int16_t & | rep_left, | ||
int16_t & | prev_chop_coord, | ||
uint8_t & | blanks, | ||
float | pitch, | ||
WERD_IT * | word_it | ||
) |
Definition at line 197 of file fpchop.cpp.
void close_chopped_cfragments | ( | C_OUTLINE_FRAG_LIST * | frags, |
C_OUTLINE_LIST * | children, | ||
float | pitch_error, | ||
C_OUTLINE_IT * | dest_it | ||
) |
Definition at line 620 of file fpchop.cpp.
void fixed_chop_cblob | ( | C_BLOB * | blob, |
int16_t | chop_coord, | ||
float | pitch_error, | ||
C_OUTLINE_LIST * | left_outlines, | ||
C_OUTLINE_LIST * | right_outlines | ||
) |
Definition at line 261 of file fpchop.cpp.
bool fixed_chop_coutline | ( | C_OUTLINE * | srcline, |
int16_t | chop_coord, | ||
float | pitch_error, | ||
C_OUTLINE_FRAG_LIST * | left_frags, | ||
C_OUTLINE_FRAG_LIST * | right_frags | ||
) |
Definition at line 387 of file fpchop.cpp.
Definition at line 42 of file fpchop.cpp.
void fixed_split_coutline | ( | C_OUTLINE * | srcline, |
int16_t | chop_coord, | ||
float | pitch_error, | ||
C_OUTLINE_IT * | left_it, | ||
C_OUTLINE_IT * | right_it | ||
) |
Definition at line 306 of file fpchop.cpp.
C_OUTLINE* join_chopped_fragments | ( | C_OUTLINE_FRAG * | bottom, |
C_OUTLINE_FRAG * | top | ||
) |
Definition at line 680 of file fpchop.cpp.
void join_segments | ( | C_OUTLINE_FRAG * | bottom, |
C_OUTLINE_FRAG * | top | ||
) |
Definition at line 716 of file fpchop.cpp.
void save_chop_cfragment | ( | int16_t | head_index, |
ICOORD | head_pos, | ||
int16_t | tail_index, | ||
ICOORD | tail_pos, | ||
C_OUTLINE * | srcline, | ||
C_OUTLINE_FRAG_LIST * | frags | ||
) |
Definition at line 503 of file fpchop.cpp.
void split_to_blob | ( | BLOBNBOX * | blob, |
int16_t | chop_coord, | ||
float | pitch_error, | ||
C_OUTLINE_LIST * | left_coutlines, | ||
C_OUTLINE_LIST * | right_coutlines | ||
) |
Definition at line 232 of file fpchop.cpp.
int textord_fp_chop_error = 2 |
"Max allowed bending of chop cells"
Definition at line 31 of file fpchop.cpp.
double textord_fp_chop_snap = 0.5 |
"Max distance of chop pt from vertex"
Definition at line 33 of file fpchop.cpp.