tesseract 4.1.1
Loading...
Searching...
No Matches
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 41 of file textord.h.

Constructor & Destructor Documentation

◆ WordWithBox() [1/2]

tesseract::WordWithBox::WordWithBox ( )
inline

Definition at line 43 of file textord.h.

43: word_(nullptr) {}

◆ WordWithBox() [2/2]

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

Definition at line 44 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 }
int16_t height() const
Definition: rect.h:108
void pad(int xpad, int ypad)
Definition: rect.h:131
TBOX bounding_box() const
Definition: werd.cpp:148
const WERD * word() const
Definition: textord.h:54

Member Function Documentation

◆ bounding_box()

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

Definition at line 50 of file textord.h.

50{ return bounding_box_; }

◆ RejBlobs()

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

Definition at line 53 of file textord.h.

53{ return word_->rej_cblob_list(); }
C_BLOB_LIST * rej_cblob_list()
Definition: werd.h:90

◆ true_bounding_box()

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

Definition at line 52 of file textord.h.

52{ return word_->true_bounding_box(); }
TBOX true_bounding_box() const
Definition: werd.cpp:169

◆ word()

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

Definition at line 54 of file textord.h.

54{ return word_; }

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