tesseract v5.3.3.20231005
tesseract::BlockGroup Struct Reference

Public Member Functions

 BlockGroup ()
 
 BlockGroup (BLOCK *block)
 

Public Attributes

TBOX bounding_box
 
FCOORD rotation
 
float angle
 
float min_xheight
 
std::vector< BLOCK * > blocks
 

Detailed Description

Definition at line 692 of file tordmain.cpp.

Constructor & Destructor Documentation

◆ BlockGroup() [1/2]

tesseract::BlockGroup::BlockGroup ( )
inline

Definition at line 693 of file tordmain.cpp.

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

◆ BlockGroup() [2/2]

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

Definition at line 694 of file tordmain.cpp.

695 : bounding_box(block->pdblk.bounding_box())
696 , rotation(block->re_rotation())
697 , angle(block->re_rotation().angle())
698 , min_xheight(block->x_height()) {
699 blocks.push_back(block);
700 }
std::vector< BLOCK * > blocks
Definition: tordmain.cpp:710

Member Data Documentation

◆ angle

float tesseract::BlockGroup::angle

Definition at line 706 of file tordmain.cpp.

◆ blocks

std::vector<BLOCK *> tesseract::BlockGroup::blocks

Definition at line 710 of file tordmain.cpp.

◆ bounding_box

TBOX tesseract::BlockGroup::bounding_box

Definition at line 702 of file tordmain.cpp.

◆ min_xheight

float tesseract::BlockGroup::min_xheight

Definition at line 708 of file tordmain.cpp.

◆ rotation

FCOORD tesseract::BlockGroup::rotation

Definition at line 704 of file tordmain.cpp.


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