#include <pdblock.h>
Definition at line 102 of file pdblock.h.
◆ BLOCK_RECT_IT()
BLOCK_RECT_IT::BLOCK_RECT_IT |
( |
PDBLK * |
blkptr | ) |
|
constructor
- Parameters
-
Definition at line 260 of file pdblock.cpp.
void start_block()
start iteration
◆ bounding_box()
void BLOCK_RECT_IT::bounding_box |
( |
ICOORD & |
bleft, |
|
|
ICOORD & |
tright |
|
) |
| |
|
inline |
current rectangle
- Parameters
-
bleft | bottom left |
tright | top right |
Definition at line 127 of file pdblock.h.
130 bleft =
ICOORD (left_it.data ()->x (), ymin);
132 tright =
ICOORD (right_it.data ()->x (), ymax);
◆ cycled_rects()
BOOL8 BLOCK_RECT_IT::cycled_rects |
( |
| ) |
|
|
inline |
test end
Definition at line 120 of file pdblock.h.
121 return left_it.cycled_list () && right_it.cycled_list ();
◆ forward()
void BLOCK_RECT_IT::forward |
( |
| ) |
|
next rectangle
Definition at line 314 of file pdblock.cpp.
315 if (!left_it.empty ()) {
316 if (left_it.data_relative (1)->y () == ymax)
318 if (right_it.data_relative (1)->y () == ymax)
321 if (left_it.at_last () || right_it.at_last ()) {
322 left_it.move_to_first ();
323 right_it.move_to_first ();
325 ymin = left_it.data ()->y ();
331 ymax = left_it.data_relative (1)->y ();
332 if (right_it.data_relative (1)->y () < ymax)
334 ymax = right_it.data_relative (1)->y ();
◆ set_to_block()
void BLOCK_RECT_IT::set_to_block |
( |
PDBLK * |
blkptr | ) |
|
start (new) block
Definition at line 278 of file pdblock.cpp.
282 left_it.set_to_list (&blkptr->
leftside);
283 right_it.set_to_list (&blkptr->
rightside);
void start_block()
start iteration
◆ start_block()
void BLOCK_RECT_IT::start_block |
( |
| ) |
|
start iteration
Definition at line 295 of file pdblock.cpp.
296 left_it.move_to_first ();
297 right_it.move_to_first ();
298 left_it.mark_cycle_pt ();
299 right_it.mark_cycle_pt ();
300 ymin = left_it.data ()->y ();
301 ymax = left_it.data_relative (1)->y ();
302 if (right_it.data_relative (1)->y () < ymax)
304 ymax = right_it.data_relative (1)->y ();
The documentation for this class was generated from the following files:
- /home/stweil/src/github/tesseract-ocr/tesseract/ccstruct/pdblock.h
- /home/stweil/src/github/tesseract-ocr/tesseract/ccstruct/pdblock.cpp