#include "pageres.h"
#include "params.h"
Go to the source code of this file.
◆ fixspace_dbg()
Definition at line 795 of file fixspace.cpp.
802 tprintf(
"Blob count: %d (word); %d/%d (rebuild word)\n",
808 if (show_map_detail) {
817 tprintf(
"Done flag: %s\n\n", word->
done ?
"TRUE" :
"FALSE");
const STRING & unichar_string() const
void full_print(FILE *fp)
WERD_CHOICE * best_choice
tesseract::BoxWord * box_word
const char * string() const
C_BLOB_LIST * cblob_list()
TBOX bounding_box() const
◆ initialise_search()
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)
◆ transform_to_next_perm()
void transform_to_next_perm |
( |
WERD_RES_LIST & |
words | ) |
|
Definition at line 372 of file fixspace.cpp.
373 WERD_RES_IT word_it(&words);
374 WERD_RES_IT prev_word_it(&words);
384 for (word_it.mark_cycle_pt(); !word_it.cycled_list(); word_it.forward()) {
385 word = word_it.data();
389 gap = box.
left() - prev_right;
393 prev_right = box.
right();
398 word_it.set_to_list(&words);
400 for (; (prev_right == -
MAX_INT16) || !word_it.at_first();
402 word = word_it.data();
406 gap = box.
left() - prev_right;
407 if (gap <= min_gap) {
408 prev_word = prev_word_it.data();
414 copy_word =
new WERD;
415 *copy_word = *(prev_word->
word);
421 prev_word_it.add_before_then_move(combo);
428 delete word_it.extract();
437 prev_word_it = word_it;
440 prev_right = box.
right();
void join_on(WERD *other)
BOOL8 flag(WERD_FLAGS mask) const
void copy_on(WERD_RES *word_res)
void set_flag(WERD_FLAGS mask, BOOL8 value)
TBOX bounding_box() const