#include <pdblock.h>
Definition at line 124 of file pdblock.h.
| BLOCK_RECT_IT::BLOCK_RECT_IT |
( |
PDBLK * |
blkptr | ) |
|
constructor
- Parameters
-
Definition at line 290 of file pdblock.cpp.
void start_block()
start iteration
| void BLOCK_RECT_IT::bounding_box |
( |
ICOORD & |
bleft, |
|
|
ICOORD & |
tright |
|
) |
| |
|
inline |
current rectangle
- Parameters
-
| bleft | bottom left |
| tright | top right |
Definition at line 149 of file pdblock.h.
152 bleft =
ICOORD (left_it.data ()->x (), ymin);
154 tright =
ICOORD (right_it.data ()->x (), ymax);
| BOOL8 BLOCK_RECT_IT::cycled_rects |
( |
| ) |
|
|
inline |
test end
Definition at line 142 of file pdblock.h.
143 return left_it.cycled_list () && right_it.cycled_list ();
| void BLOCK_RECT_IT::forward |
( |
| ) |
|
next rectangle
Definition at line 344 of file pdblock.cpp.
345 if (!left_it.empty ()) {
346 if (left_it.data_relative (1)->y () == ymax)
348 if (right_it.data_relative (1)->y () == ymax)
351 if (left_it.at_last () || right_it.at_last ()) {
352 left_it.move_to_first ();
353 right_it.move_to_first ();
355 ymin = left_it.data ()->y ();
361 ymax = left_it.data_relative (1)->y ();
362 if (right_it.data_relative (1)->y () < ymax)
364 ymax = right_it.data_relative (1)->y ();
| void BLOCK_RECT_IT::set_to_block |
( |
PDBLK * |
blkptr | ) |
|
start (new) block
Definition at line 308 of file pdblock.cpp.
312 left_it.set_to_list (&blkptr->
leftside);
313 right_it.set_to_list (&blkptr->
rightside);
void start_block()
start iteration
| void BLOCK_RECT_IT::start_block |
( |
| ) |
|
start iteration
Definition at line 325 of file pdblock.cpp.
326 left_it.move_to_first ();
327 right_it.move_to_first ();
328 left_it.mark_cycle_pt ();
329 right_it.mark_cycle_pt ();
330 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 ();
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccstruct/pdblock.h
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccstruct/pdblock.cpp