#include "pageres.h"
#include "params.h"
Go to the source code of this file.
Definition at line 796 of file fixspace.cpp.
803 tprintf(
"Blob count: %d (word); %d/%d (rebuild word)\n",
809 if (show_map_detail) {
818 tprintf(
"Done flag: %s\n\n", word->
done ?
"TRUE" :
"FALSE");
tesseract::BoxWord * box_word
WERD_CHOICE * best_choice
TBOX bounding_box() const
const STRING & unichar_string() const
void full_print(FILE *fp)
const char * string() const
C_BLOB_LIST * cblob_list()
void initialise_search |
( |
WERD_RES_LIST & |
src_list, |
|
|
WERD_RES_LIST & |
new_list |
|
) |
| |
Definition at line 177 of file fixspace.cpp.
178 WERD_RES_IT src_it(&src_list);
179 WERD_RES_IT new_it(&new_list);
183 for (src_it.mark_cycle_pt(); !src_it.cycled_list(); src_it.forward()) {
184 src_wd = src_it.data();
189 new_it.add_after_then_move(new_wd);
static WERD_RES * deep_copy(const WERD_RES *src)
void transform_to_next_perm |
( |
WERD_RES_LIST & |
words | ) |
|
Definition at line 373 of file fixspace.cpp.
374 WERD_RES_IT word_it(&words);
375 WERD_RES_IT prev_word_it(&words);
385 for (word_it.mark_cycle_pt(); !word_it.cycled_list(); word_it.forward()) {
386 word = word_it.data();
390 gap = box.
left() - prev_right;
394 prev_right = box.
right();
399 word_it.set_to_list(&words);
401 for (; (prev_right == -
MAX_INT16) || !word_it.at_first();
403 word = word_it.data();
407 gap = box.
left() - prev_right;
408 if (gap <= min_gap) {
409 prev_word = prev_word_it.data();
415 copy_word =
new WERD;
416 *copy_word = *(prev_word->
word);
422 prev_word_it.add_before_then_move(combo);
429 delete word_it.extract();
438 prev_word_it = word_it;
441 prev_right = box.
right();
void join_on(WERD *other)
TBOX bounding_box() const
BOOL8 flag(WERD_FLAGS mask) const
void copy_on(WERD_RES *word_res)
void set_flag(WERD_FLAGS mask, BOOL8 value)