tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
BLOCK_RECT_IT Class Reference

#include <pdblock.h>

Collaboration diagram for BLOCK_RECT_IT:

Public Member Functions

 BLOCK_RECT_IT (PDBLK *blkptr)
 
void set_to_block (PDBLK *blkptr)
 start (new) block More...
 
void start_block ()
 start iteration More...
 
void forward ()
 next rectangle More...
 
bool cycled_rects ()
 test end More...
 
void bounding_box (ICOORD &bleft, ICOORD &tright)
 

Private Attributes

int16_t ymin
 
int16_t ymax
 
PDBLKblock
 
ICOORDELT_IT left_it
 
ICOORDELT_IT right_it
 

Constructor & Destructor Documentation

◆ BLOCK_RECT_IT()

BLOCK_RECT_IT::BLOCK_RECT_IT ( PDBLK blkptr)

constructor

Parameters
blkptrblock to iterate

Member Function Documentation

◆ bounding_box()

void BLOCK_RECT_IT::bounding_box ( ICOORD bleft,
ICOORD tright 
)
inline

current rectangle

Parameters
bleftbottom left
trighttop right

◆ cycled_rects()

bool BLOCK_RECT_IT::cycled_rects ( )
inline

test end

◆ forward()

void BLOCK_RECT_IT::forward ( )

next rectangle

◆ set_to_block()

void BLOCK_RECT_IT::set_to_block ( PDBLK blkptr)

start (new) block

◆ start_block()

void BLOCK_RECT_IT::start_block ( )

start iteration

Member Data Documentation

◆ block

PDBLK* BLOCK_RECT_IT::block
private

◆ left_it

ICOORDELT_IT BLOCK_RECT_IT::left_it
private

◆ right_it

ICOORDELT_IT BLOCK_RECT_IT::right_it
private

◆ ymax

int16_t BLOCK_RECT_IT::ymax
private

◆ ymin

int16_t BLOCK_RECT_IT::ymin
private

The documentation for this class was generated from the following files: