tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
TBLOB Struct Reference

#include <blobs.h>

Collaboration diagram for TBLOB:

Public Member Functions

 TBLOB ()
 
 TBLOB (const TBLOB &src)
 
 ~TBLOB ()
 
TBLOBoperator= (const TBLOB &src)
 
TBLOBClassifyNormalizeIfNeeded () const
 
void CopyFrom (const TBLOB &src)
 
void Clear ()
 
void Normalize (const BLOCK *block, const FCOORD *rotation, const DENORM *predecessor, float x_origin, float y_origin, float x_scale, float y_scale, float final_xshift, float final_yshift, bool inverse, Pix *pix)
 
void Rotate (const FCOORD rotation)
 
void Move (const ICOORD vec)
 
void Scale (float factor)
 
void ComputeBoundingBoxes ()
 
int NumOutlines () const
 
TBOX bounding_box () const
 
bool SegmentCrossesOutline (const TPOINT &pt1, const TPOINT &pt2) const
 
bool Contains (const TPOINT &pt) const
 
void EliminateDuplicateOutlines ()
 
void CorrectBlobOrder (TBLOB *next)
 
const DENORMdenorm () const
 
void plot (ScrollView *window, ScrollView::Color color, ScrollView::Color child_color)
 
int BBArea () const
 
int ComputeMoments (FCOORD *center, FCOORD *second_moments) const
 
void GetPreciseBoundingBox (TBOX *precise_box) const
 
void GetEdgeCoords (const TBOX &box, GenericVector< GenericVector< int > > *x_coords, GenericVector< GenericVector< int > > *y_coords) const
 

Static Public Member Functions

static TBLOBPolygonalCopy (bool allow_detailed_fx, C_BLOB *src)
 
static TBLOBShallowCopy (const TBLOB &src)
 

Public Attributes

TESSLINEoutlines
 

Private Member Functions

void CollectEdges (const TBOX &box, TBOX *bounding_box, LLSQ *llsq, GenericVector< GenericVector< int > > *x_coords, GenericVector< GenericVector< int > > *y_coords) const
 

Private Attributes

DENORM denorm_
 

Constructor & Destructor Documentation

◆ TBLOB() [1/2]

TBLOB::TBLOB ( )
inline

◆ TBLOB() [2/2]

TBLOB::TBLOB ( const TBLOB src)
inline

◆ ~TBLOB()

TBLOB::~TBLOB ( )
inline

Member Function Documentation

◆ BBArea()

int TBLOB::BBArea ( ) const
inline

◆ bounding_box()

TBOX TBLOB::bounding_box ( ) const

◆ ClassifyNormalizeIfNeeded()

TBLOB * TBLOB::ClassifyNormalizeIfNeeded ( ) const

◆ Clear()

void TBLOB::Clear ( )

◆ CollectEdges()

void TBLOB::CollectEdges ( const TBOX box,
TBOX bounding_box,
LLSQ llsq,
GenericVector< GenericVector< int > > *  x_coords,
GenericVector< GenericVector< int > > *  y_coords 
) const
private

◆ ComputeBoundingBoxes()

void TBLOB::ComputeBoundingBoxes ( )

◆ ComputeMoments()

int TBLOB::ComputeMoments ( FCOORD center,
FCOORD second_moments 
) const

◆ Contains()

bool TBLOB::Contains ( const TPOINT pt) const
inline

◆ CopyFrom()

void TBLOB::CopyFrom ( const TBLOB src)

◆ CorrectBlobOrder()

void TBLOB::CorrectBlobOrder ( TBLOB next)

◆ denorm()

const DENORM& TBLOB::denorm ( ) const
inline

◆ EliminateDuplicateOutlines()

void TBLOB::EliminateDuplicateOutlines ( )

◆ GetEdgeCoords()

void TBLOB::GetEdgeCoords ( const TBOX box,
GenericVector< GenericVector< int > > *  x_coords,
GenericVector< GenericVector< int > > *  y_coords 
) const

◆ GetPreciseBoundingBox()

void TBLOB::GetPreciseBoundingBox ( TBOX precise_box) const

◆ Move()

void TBLOB::Move ( const ICOORD  vec)

◆ Normalize()

void TBLOB::Normalize ( const BLOCK block,
const FCOORD rotation,
const DENORM predecessor,
float  x_origin,
float  y_origin,
float  x_scale,
float  y_scale,
float  final_xshift,
float  final_yshift,
bool  inverse,
Pix *  pix 
)

◆ NumOutlines()

int TBLOB::NumOutlines ( ) const

◆ operator=()

TBLOB& TBLOB::operator= ( const TBLOB src)
inline

◆ plot()

void TBLOB::plot ( ScrollView window,
ScrollView::Color  color,
ScrollView::Color  child_color 
)

◆ PolygonalCopy()

TBLOB * TBLOB::PolygonalCopy ( bool  allow_detailed_fx,
C_BLOB src 
)
static

◆ Rotate()

void TBLOB::Rotate ( const FCOORD  rotation)

◆ Scale()

void TBLOB::Scale ( float  factor)

◆ SegmentCrossesOutline()

bool TBLOB::SegmentCrossesOutline ( const TPOINT pt1,
const TPOINT pt2 
) const
inline

◆ ShallowCopy()

TBLOB * TBLOB::ShallowCopy ( const TBLOB src)
static

Member Data Documentation

◆ denorm_

DENORM TBLOB::denorm_
private

◆ outlines

TESSLINE* TBLOB::outlines

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