tesseract v5.3.3.20231005
tesseract::WordWithBox Class Reference

#include <textord.h>

Public Member Functions

 WordWithBox ()
 
 WordWithBox (WERD *word)
 
const TBOXbounding_box () const
 
TBOX true_bounding_box () const
 
C_BLOB_LIST * RejBlobs () const
 
const WERDword () const
 

Detailed Description

Definition at line 42 of file textord.h.

Constructor & Destructor Documentation

◆ WordWithBox() [1/2]

tesseract::WordWithBox::WordWithBox ( )
inline

Definition at line 44 of file textord.h.

44: word_(nullptr) {}

◆ WordWithBox() [2/2]

tesseract::WordWithBox::WordWithBox ( WERD word)
inlineexplicit

Definition at line 45 of file textord.h.

45 : word_(word), bounding_box_(word->bounding_box()) {
46 int height = bounding_box_.height();
47 bounding_box_.pad(height, height);
48 }
TDimension height() const
Definition: rect.h:118
void pad(int xpad, int ypad)
Definition: rect.h:144
TBOX bounding_box() const
Definition: werd.cpp:155
const WERD * word() const
Definition: textord.h:60

Member Function Documentation

◆ bounding_box()

const TBOX & tesseract::WordWithBox::bounding_box ( ) const
inline

Definition at line 50 of file textord.h.

50 {
51 return bounding_box_;
52 }

◆ RejBlobs()

C_BLOB_LIST * tesseract::WordWithBox::RejBlobs ( ) const
inline

Definition at line 57 of file textord.h.

57 {
58 return word_->rej_cblob_list();
59 }
C_BLOB_LIST * rej_cblob_list()
Definition: werd.h:91

◆ true_bounding_box()

TBOX tesseract::WordWithBox::true_bounding_box ( ) const
inline

Definition at line 54 of file textord.h.

54 {
55 return word_->true_bounding_box();
56 }
TBOX true_bounding_box() const
Definition: werd.cpp:177

◆ word()

const WERD * tesseract::WordWithBox::word ( ) const
inline

Definition at line 60 of file textord.h.

60 {
61 return word_;
62 }

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