#include <pageres.h>
Definition at line 689 of file pageres.h.
| PAGE_RES_IT::PAGE_RES_IT |
( |
| ) |
|
|
inline |
| PAGE_RES_IT::PAGE_RES_IT |
( |
PAGE_RES * |
the_page_res | ) |
|
|
inline |
Definition at line 696 of file pageres.h.
WERD_RES * restart_page()
| int PAGE_RES_IT::cmp |
( |
const PAGE_RES_IT & |
other | ) |
const |
Definition at line 851 of file pageres.cpp.
853 if (other.block_res ==
NULL) {
855 if (block_res ==
NULL)
859 if (block_res ==
NULL) {
862 if (block_res == other.block_res) {
863 if (other.row_res ==
NULL || row_res ==
NULL) {
867 if (row_res == other.row_res) {
870 if (word_res == other.word_res) {
876 for (word_res_it.mark_cycle_pt(); !word_res_it.cycled_list();
877 word_res_it.forward()) {
878 if (word_res_it.data() == word_res) {
880 }
else if (word_res_it.data() == other.word_res) {
889 for (row_res_it.mark_cycle_pt(); !row_res_it.cycled_list();
890 row_res_it.forward()) {
891 if (row_res_it.data() == row_res) {
893 }
else if (row_res_it.data() == other.row_res) {
902 for (block_res_it.mark_cycle_pt();
903 !block_res_it.cycled_list(); block_res_it.forward()) {
904 if (block_res_it.data() == block_res) {
906 }
else if (block_res_it.data() == other.block_res) {
BLOCK_RES_LIST block_res_list
WERD_RES_LIST word_res_list
ROW_RES_LIST row_res_list
| void PAGE_RES_IT::DeleteCurrentWord |
( |
| ) |
|
Definition at line 950 of file pageres.cpp.
958 WERD_IT w_it(
row()->
row->word_list());
959 for (w_it.mark_cycle_pt(); !w_it.cycled_list(); w_it.forward()) {
960 if (w_it.data() == word_res->
word) {
965 delete w_it.extract();
969 WERD_RES_IT wr_it(&
row()->word_res_list);
970 for (wr_it.mark_cycle_pt(); !wr_it.cycled_list(); wr_it.forward()) {
971 if (wr_it.data() == word_res) {
977 delete wr_it.extract();
Definition at line 737 of file pageres.h.
738 return internal_forward(
false,
false);
| WERD_RES * PAGE_RES_IT::forward_block |
( |
| ) |
|
Definition at line 1130 of file pageres.cpp.
1131 while (block_res == next_block_res) {
1132 internal_forward(
false,
true);
1134 return internal_forward(
false,
true);
| WERD_RES * PAGE_RES_IT::forward_paragraph |
( |
| ) |
|
Definition at line 1115 of file pageres.cpp.
1116 while (block_res == next_block_res &&
1117 (next_row_res !=
NULL && next_row_res->
row !=
NULL &&
1119 internal_forward(
false,
true);
1121 return internal_forward(
false,
true);
| WERD_RES* PAGE_RES_IT::forward_with_empties |
( |
| ) |
|
|
inline |
Definition at line 741 of file pageres.h.
742 return internal_forward(
false,
true);
Definition at line 918 of file pageres.cpp.
921 WERD_IT w_it(
row()->
row->word_list());
922 for (w_it.mark_cycle_pt(); !w_it.cycled_list(); w_it.forward()) {
924 if (word == word_res->
word)
928 w_it.add_before_then_move(new_word);
933 WERD_RES_IT wr_it(&
row()->word_res_list);
934 for (wr_it.mark_cycle_pt(); !wr_it.cycled_list(); wr_it.forward()) {
936 if (word == word_res)
940 wr_it.add_before_then_move(new_res);
941 if (wr_it.at_first()) {
void CopySimpleFields(const WERD_RES &source)
Definition at line 772 of file pageres.h.
773 return next_block_res;
| ROW_RES* PAGE_RES_IT::next_row |
( |
| ) |
const |
|
inline |
| WERD_RES* PAGE_RES_IT::next_word |
( |
| ) |
const |
|
inline |
Definition at line 766 of file pageres.h.
767 return next_word_res;
Definition at line 705 of file pageres.h.
705 {
return !(*
this == other); }
| bool PAGE_RES_IT::operator== |
( |
const PAGE_RES_IT & |
other | ) |
const |
Definition at line 845 of file pageres.cpp.
846 return word_res == other.word_res &&
847 row_res == other.row_res &&
848 block_res == other.block_res;
Definition at line 754 of file pageres.h.
755 return prev_block_res;
| ROW_RES* PAGE_RES_IT::prev_row |
( |
| ) |
const |
|
inline |
| WERD_RES* PAGE_RES_IT::prev_word |
( |
| ) |
const |
|
inline |
Definition at line 748 of file pageres.h.
749 return prev_word_res;
| void PAGE_RES_IT::rej_stat_word |
( |
| ) |
|
Definition at line 1137 of file pageres.cpp.
1138 inT16 chars_in_word;
1139 inT16 rejects_in_word = 0;
1149 block_res->
rej_count += rejects_in_word;
1151 if (chars_in_word == rejects_in_word)
inT32 whole_word_rej_count
Definition at line 713 of file pageres.h.
WERD_RES * start_page(bool empty_ok)
| WERD_RES* PAGE_RES_IT::restart_page_with_empties |
( |
| ) |
|
|
inline |
Definition at line 716 of file pageres.h.
WERD_RES * start_page(bool empty_ok)
Definition at line 1100 of file pageres.cpp.
1102 if (!row)
return NULL;
WERD_RES * restart_page()
| ROW_RES* PAGE_RES_IT::row |
( |
| ) |
const |
|
inline |
| WERD_RES * PAGE_RES_IT::start_page |
( |
bool |
empty_ok | ) |
|
Definition at line 987 of file pageres.cpp.
989 block_res_it.mark_cycle_pt();
990 prev_block_res =
NULL;
992 prev_word_res =
NULL;
996 next_block_res =
NULL;
998 next_word_res =
NULL;
999 internal_forward(
true, empty_ok);
1000 return internal_forward(
false, empty_ok);
BLOCK_RES_LIST block_res_list
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccstruct/pageres.h
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccstruct/pageres.cpp