tesseract
4.0.0-1-g2a2b
|
#include <bbgrid.h>
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) |
IntGrid * | NeighbourhoodSum () 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 ICOORD & | bleft () const |
const ICOORD & | tright () const |
void | GridCoords (int x, int y, int *grid_x, int *grid_y) const |
void | ClipGridCoords (int *x, int *y) const |
Additional Inherited Members | |
Protected Attributes inherited from tesseract::GridBase | |
int | gridsize_ |
int | gridwidth_ |
int | gridheight_ |
int | gridbuckets_ |
ICOORD | bleft_ |
ICOORD | tright_ |
tesseract::IntGrid::IntGrid | ( | ) |
Definition at line 65 of file bbgrid.cpp.
Definition at line 69 of file bbgrid.cpp.
|
virtual |
Definition at line 74 of file bbgrid.cpp.
bool tesseract::IntGrid::AnyZeroInRect | ( | const TBOX & | rect | ) | const |
Definition at line 175 of file bbgrid.cpp.
void tesseract::IntGrid::Clear | ( | ) |
Definition at line 88 of file bbgrid.cpp.
|
inline |
Definition at line 121 of file bbgrid.h.
Definition at line 80 of file bbgrid.cpp.
IntGrid * tesseract::IntGrid::NeighbourhoodSum | ( | ) | const |
Definition at line 133 of file bbgrid.cpp.
bool tesseract::IntGrid::RectMostlyOverThreshold | ( | const TBOX & | rect, |
int | threshold | ||
) | const |
Definition at line 155 of file bbgrid.cpp.
void tesseract::IntGrid::Rotate | ( | const FCOORD & | rotation | ) |
Definition at line 100 of file bbgrid.cpp.
|
inline |
Pix * tesseract::IntGrid::ThresholdToPix | ( | int | threshold | ) | const |
Definition at line 191 of file bbgrid.cpp.