rectangle iterator
More...
#include <pdblock.h>
rectangle iterator
Definition at line 156 of file pdblock.h.
◆ BLOCK_LINE_IT()
tesseract::BLOCK_LINE_IT::BLOCK_LINE_IT |
( |
PDBLK * |
blkptr | ) |
|
|
inline |
constructor
- Parameters
-
Definition at line 160 of file pdblock.h.
◆ get_line()
get a line
- Parameters
-
y | line to get |
xext | output extent |
Definition at line 353 of file pdblock.cpp.
362 if (y < bleft.y() || y >= tright.y()) {
370 if (y >= bleft.y() && y < tright.y()) {
372 xext = tright.x() - bleft.x();
379 if (y >= bleft.y() && y < tright.y()) {
381 xext = tright.x() - bleft.x();
constexpr ERRCODE BADBLOCKLINE("Y coordinate in block out of bounds")
constexpr ERRCODE LOSTBLOCKLINE("Can't find rectangle for line")
void bounding_box(ICOORD &bottom_left, ICOORD &top_right) const
get box
void forward()
next rectangle
void start_block()
start iteration
bool cycled_rects() const
test end
void bounding_box(ICOORD &bleft, ICOORD &tright)
void error(const char *caller, TessErrorLogCode action, const char *format,...) const __attribute__((format(printf
◆ set_to_block()
void tesseract::BLOCK_LINE_IT::set_to_block |
( |
PDBLK * |
blkptr | ) |
|
|
inline |
start (new) block
- Parameters
-
Definition at line 166 of file pdblock.h.
void set_to_block(PDBLK *blkptr)
start (new) block
The documentation for this class was generated from the following files: