tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::BoxWord Class Reference

#include <boxword.h>

Collaboration diagram for tesseract::BoxWord:

Public Member Functions

 BoxWord ()
 
 BoxWord (const BoxWord &src)
 
 ~BoxWord ()=default
 
BoxWordoperator= (const BoxWord &src)
 
void CopyFrom (const BoxWord &src)
 
void ClipToOriginalWord (const BLOCK *block, WERD *original_word)
 
void MergeBoxes (int start, int end)
 
void InsertBox (int index, const TBOX &box)
 
void ChangeBox (int index, const TBOX &box)
 
void DeleteBox (int index)
 
void DeleteAllBoxes ()
 
void ProcessMatchedBlobs (const TWERD &other, TessCallback1< int > *cb) const
 
const TBOXbounding_box () const
 
int length () const
 
const TBOXBlobBox (int index) const
 

Static Public Member Functions

static BoxWordCopyFromNormalized (TWERD *tessword)
 

Private Member Functions

void ComputeBoundingBox ()
 

Private Attributes

TBOX bbox_
 
int length_
 
GenericVector< TBOXboxes_
 

Constructor & Destructor Documentation

◆ BoxWord() [1/2]

tesseract::BoxWord::BoxWord ( )

◆ BoxWord() [2/2]

tesseract::BoxWord::BoxWord ( const BoxWord src)
explicit

◆ ~BoxWord()

tesseract::BoxWord::~BoxWord ( )
default

Member Function Documentation

◆ BlobBox()

const TBOX& tesseract::BoxWord::BlobBox ( int  index) const
inline

◆ bounding_box()

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

◆ ChangeBox()

void tesseract::BoxWord::ChangeBox ( int  index,
const TBOX box 
)

◆ ClipToOriginalWord()

void tesseract::BoxWord::ClipToOriginalWord ( const BLOCK block,
WERD original_word 
)

◆ ComputeBoundingBox()

void tesseract::BoxWord::ComputeBoundingBox ( )
private

◆ CopyFrom()

void tesseract::BoxWord::CopyFrom ( const BoxWord src)

◆ CopyFromNormalized()

BoxWord * tesseract::BoxWord::CopyFromNormalized ( TWERD tessword)
static

◆ DeleteAllBoxes()

void tesseract::BoxWord::DeleteAllBoxes ( )

◆ DeleteBox()

void tesseract::BoxWord::DeleteBox ( int  index)

◆ InsertBox()

void tesseract::BoxWord::InsertBox ( int  index,
const TBOX box 
)

◆ length()

int tesseract::BoxWord::length ( ) const
inline

◆ MergeBoxes()

void tesseract::BoxWord::MergeBoxes ( int  start,
int  end 
)

◆ operator=()

BoxWord & tesseract::BoxWord::operator= ( const BoxWord src)

◆ ProcessMatchedBlobs()

void tesseract::BoxWord::ProcessMatchedBlobs ( const TWERD other,
TessCallback1< int > *  cb 
) const

Member Data Documentation

◆ bbox_

TBOX tesseract::BoxWord::bbox_
private

◆ boxes_

GenericVector<TBOX> tesseract::BoxWord::boxes_
private

◆ length_

int tesseract::BoxWord::length_
private

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