tesseract  4.0.0-1-g2a2b
tesseract::BlockGroup Struct Reference

Public Member Functions

 BlockGroup ()
 
 BlockGroup (BLOCK *block)
 

Public Attributes

TBOX bounding_box
 
FCOORD rotation
 
float angle
 
float min_xheight
 
GenericVector< BLOCK * > blocks
 

Detailed Description

Definition at line 721 of file tordmain.cpp.

Constructor & Destructor Documentation

◆ BlockGroup() [1/2]

tesseract::BlockGroup::BlockGroup ( )
inline

Definition at line 722 of file tordmain.cpp.

722 : rotation(1.0f, 0.0f), angle(0.0f), min_xheight(1.0f) {}

◆ BlockGroup() [2/2]

tesseract::BlockGroup::BlockGroup ( BLOCK block)
inlineexplicit

Definition at line 723 of file tordmain.cpp.

724  : bounding_box(block->pdblk.bounding_box()),
725  rotation(block->re_rotation()),
726  angle(block->re_rotation().angle()),
727  min_xheight(block->x_height()) {
728  blocks.push_back(block);
729  }
FCOORD re_rotation() const
Definition: ocrblock.h:136
float angle() const
find angle
Definition: points.h:248
int push_back(T object)
GenericVector< BLOCK * > blocks
Definition: tordmain.cpp:739
void bounding_box(ICOORD &bottom_left, ICOORD &top_right) const
get box
Definition: pdblock.h:60
PDBLK pdblk
Definition: ocrblock.h:192
int32_t x_height() const
return xheight
Definition: ocrblock.h:108

Member Data Documentation

◆ angle

float tesseract::BlockGroup::angle

Definition at line 735 of file tordmain.cpp.

◆ blocks

GenericVector<BLOCK*> tesseract::BlockGroup::blocks

Definition at line 739 of file tordmain.cpp.

◆ bounding_box

TBOX tesseract::BlockGroup::bounding_box

Definition at line 731 of file tordmain.cpp.

◆ min_xheight

float tesseract::BlockGroup::min_xheight

Definition at line 737 of file tordmain.cpp.

◆ rotation

FCOORD tesseract::BlockGroup::rotation

Definition at line 733 of file tordmain.cpp.


The documentation for this struct was generated from the following file: