#include <pdblock.h>
Definition at line 103 of file pdblock.h.
◆ BLOCK_RECT_IT()
BLOCK_RECT_IT::BLOCK_RECT_IT |
( |
PDBLK * |
blkptr | ) |
|
constructor
- Parameters
-
Definition at line 262 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 128 of file pdblock.h.
131 bleft =
ICOORD (left_it.data ()->x (), ymin);
133 tright =
ICOORD (right_it.data ()->x (), ymax);
◆ cycled_rects()
bool BLOCK_RECT_IT::cycled_rects |
( |
| ) |
|
|
inline |
test end
Definition at line 121 of file pdblock.h.
122 return left_it.cycled_list() && right_it.cycled_list();
◆ forward()
void BLOCK_RECT_IT::forward |
( |
| ) |
|
next rectangle
Definition at line 316 of file pdblock.cpp.
317 if (!left_it.empty ()) {
318 if (left_it.data_relative (1)->y () == ymax)
320 if (right_it.data_relative (1)->y () == ymax)
323 if (left_it.at_last () || right_it.at_last ()) {
324 left_it.move_to_first ();
325 right_it.move_to_first ();
327 ymin = left_it.data ()->y ();
333 ymax = left_it.data_relative (1)->y ();
334 if (right_it.data_relative (1)->y () < ymax)
336 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 280 of file pdblock.cpp.
284 left_it.set_to_list (&blkptr->
leftside);
285 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 297 of file pdblock.cpp.
298 left_it.move_to_first ();
299 right_it.move_to_first ();
300 left_it.mark_cycle_pt ();
301 right_it.mark_cycle_pt ();
302 ymin = left_it.data ()->y ();
303 ymax = left_it.data_relative (1)->y ();
304 if (right_it.data_relative (1)->y () < ymax)
306 ymax = right_it.data_relative (1)->y ();
The documentation for this class was generated from the following files:
- /usr/src/tesseract-ocr.master/src/ccstruct/pdblock.h
- /usr/src/tesseract-ocr.master/src/ccstruct/pdblock.cpp