tesseract  4.00.00dev
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 711 of file tordmain.cpp.

Constructor & Destructor Documentation

◆ BlockGroup() [1/2]

tesseract::BlockGroup::BlockGroup ( )
inline

Definition at line 712 of file tordmain.cpp.

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

◆ BlockGroup() [2/2]

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

Definition at line 713 of file tordmain.cpp.

714  : bounding_box(block->bounding_box()),
715  rotation(block->re_rotation()),
716  angle(block->re_rotation().angle()),
717  min_xheight(block->x_height()) {
718  blocks.push_back(block);
719  }
void bounding_box(ICOORD &bottom_left, ICOORD &top_right) const
get box
Definition: pdblock.h:59
float angle() const
find angle
Definition: points.h:249
int push_back(T object)
inT32 x_height() const
return xheight
Definition: ocrblock.h:110
GenericVector< BLOCK * > blocks
Definition: tordmain.cpp:729
FCOORD re_rotation() const
Definition: ocrblock.h:138

Member Data Documentation

◆ angle

float tesseract::BlockGroup::angle

Definition at line 725 of file tordmain.cpp.

◆ blocks

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

Definition at line 729 of file tordmain.cpp.

◆ bounding_box

TBOX tesseract::BlockGroup::bounding_box

Definition at line 721 of file tordmain.cpp.

◆ min_xheight

float tesseract::BlockGroup::min_xheight

Definition at line 727 of file tordmain.cpp.

◆ rotation

FCOORD tesseract::BlockGroup::rotation

Definition at line 723 of file tordmain.cpp.


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