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

#include <bbgrid.h>

Inheritance diagram for tesseract::IntGrid:
Collaboration diagram for tesseract::IntGrid:

Public Member Functions

 IntGrid ()
 
 IntGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright)
 
virtual ~IntGrid ()
 
void Init (int gridsize, const ICOORD &bleft, const ICOORD &tright)
 
void Clear ()
 
void Rotate (const FCOORD &rotation)
 
IntGridNeighbourhoodSum () const
 
int GridCellValue (int grid_x, int grid_y) const
 
void SetGridCell (int grid_x, int grid_y, int value)
 
bool RectMostlyOverThreshold (const TBOX &rect, int threshold) const
 
bool AnyZeroInRect (const TBOX &rect) const
 
Pix * ThresholdToPix (int threshold) const
 
- Public Member Functions inherited from tesseract::GridBase
 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
 

Private Attributes

int * grid_
 

Additional Inherited Members

- Protected Attributes inherited from tesseract::GridBase
int gridsize_
 
int gridwidth_
 
int gridheight_
 
int gridbuckets_
 
ICOORD bleft_
 
ICOORD tright_
 

Constructor & Destructor Documentation

◆ IntGrid() [1/2]

tesseract::IntGrid::IntGrid ( )

◆ IntGrid() [2/2]

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

◆ ~IntGrid()

tesseract::IntGrid::~IntGrid ( )
virtual

Member Function Documentation

◆ AnyZeroInRect()

bool tesseract::IntGrid::AnyZeroInRect ( const TBOX rect) const

◆ Clear()

void tesseract::IntGrid::Clear ( )

◆ GridCellValue()

int tesseract::IntGrid::GridCellValue ( int  grid_x,
int  grid_y 
) const
inline

◆ Init()

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

◆ NeighbourhoodSum()

IntGrid * tesseract::IntGrid::NeighbourhoodSum ( ) const

◆ RectMostlyOverThreshold()

bool tesseract::IntGrid::RectMostlyOverThreshold ( const TBOX rect,
int  threshold 
) const

◆ Rotate()

void tesseract::IntGrid::Rotate ( const FCOORD rotation)

◆ SetGridCell()

void tesseract::IntGrid::SetGridCell ( int  grid_x,
int  grid_y,
int  value 
)
inline

◆ ThresholdToPix()

Pix * tesseract::IntGrid::ThresholdToPix ( int  threshold) const

Member Data Documentation

◆ grid_

int* tesseract::IntGrid::grid_
private

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