tesseract 3.04.01

tesseract::WordWithBox Class Reference

#include <textord.h>

List of all members.

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

tesseract::WordWithBox::WordWithBox ( ) [inline]

Definition at line 43 of file textord.h.

: word_(NULL) {}
tesseract::WordWithBox::WordWithBox ( WERD word) [inline, explicit]

Definition at line 44 of file textord.h.

      : word_(word), bounding_box_(word->bounding_box()) {
    int height = bounding_box_.height();
    bounding_box_.pad(height, height);
  }

Member Function Documentation

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

Definition at line 50 of file textord.h.

{ return bounding_box_; }
C_BLOB_LIST* tesseract::WordWithBox::RejBlobs ( ) const [inline]

Definition at line 53 of file textord.h.

{ return word_->rej_cblob_list(); }
TBOX tesseract::WordWithBox::true_bounding_box ( ) const [inline]

Definition at line 52 of file textord.h.

{ return word_->true_bounding_box(); }
const WERD* tesseract::WordWithBox::word ( ) const [inline]

Definition at line 54 of file textord.h.

{ return word_; }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines