tesseract  5.0.0-alpha-619-ge9db
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  }

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(); }

◆ 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(); }

◆ 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:
tesseract::WordWithBox::word
const WERD * word() const
Definition: textord.h:54
WERD::bounding_box
TBOX bounding_box() const
Definition: werd.cpp:147
TBOX::height
int16_t height() const
Definition: rect.h:107
WERD::true_bounding_box
TBOX true_bounding_box() const
Definition: werd.cpp:168
TBOX::pad
void pad(int xpad, int ypad)
Definition: rect.h:130
WERD::rej_cblob_list
C_BLOB_LIST * rej_cblob_list()
Definition: werd.h:89