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

#include <bbgrid.h>

Inheritance diagram for tesseract::GridBase:
Collaboration diagram for tesseract::GridBase:

Public Member Functions

 GridBase ()=default
 
 GridBase (int gridsize, const ICOORD &bleft, const ICOORD &tright)
 
virtual ~GridBase ()
 
void Init (int gridsize, const ICOORD &bleft, const ICOORD &tright)
 
int gridsize () const
 
int gridwidth () const
 
int gridheight () const
 
const ICOORDbleft () const
 
const ICOORDtright () const
 
void GridCoords (int x, int y, int *grid_x, int *grid_y) const
 
void ClipGridCoords (int *x, int *y) const
 

Protected Attributes

int gridsize_
 
int gridwidth_
 
int gridheight_
 
int gridbuckets_
 
ICOORD bleft_
 
ICOORD tright_
 

Constructor & Destructor Documentation

◆ GridBase() [1/2]

tesseract::GridBase::GridBase ( )
default

◆ GridBase() [2/2]

tesseract::GridBase::GridBase ( int  gridsize,
const ICOORD bleft,
const ICOORD tright 
)

◆ ~GridBase()

tesseract::GridBase::~GridBase ( )
virtualdefault

Member Function Documentation

◆ bleft()

const ICOORD& tesseract::GridBase::bleft ( ) const
inline

◆ ClipGridCoords()

void tesseract::GridBase::ClipGridCoords ( int *  x,
int *  y 
) const

◆ GridCoords()

void tesseract::GridBase::GridCoords ( int  x,
int  y,
int *  grid_x,
int *  grid_y 
) const

◆ gridheight()

int tesseract::GridBase::gridheight ( ) const
inline

◆ gridsize()

int tesseract::GridBase::gridsize ( ) const
inline

◆ gridwidth()

int tesseract::GridBase::gridwidth ( ) const
inline

◆ Init()

void tesseract::GridBase::Init ( int  gridsize,
const ICOORD bleft,
const ICOORD tright 
)

◆ tright()

const ICOORD& tesseract::GridBase::tright ( ) const
inline

Member Data Documentation

◆ bleft_

ICOORD tesseract::GridBase::bleft_
protected

◆ gridbuckets_

int tesseract::GridBase::gridbuckets_
protected

◆ gridheight_

int tesseract::GridBase::gridheight_
protected

◆ gridsize_

int tesseract::GridBase::gridsize_
protected

◆ gridwidth_

int tesseract::GridBase::gridwidth_
protected

◆ tright_

ICOORD tesseract::GridBase::tright_
protected

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