src/textord/bbgrid.cpp
void GridBase::GridCoords(int x, int y, int *grid_x, int *grid_y) const {
  *grid_x = (x - bleft_.x()) / gridsize_;
  *grid_y = (y - bleft_.y()) / gridsize_;
  ClipGridCoords(grid_x, grid_y);
}
// Compute the given grid coordinates from image coords.
Compute the given grid coordinates from image coords.
Compute the given grid coordinates from image coords .
void GridBase::GridCoords(int x, int y, int *grid_x, int *grid_y) const {
  *grid_x = (x - bleft_.x()) / gridsize_;
  *grid_y = (y - bleft_.y()) / gridsize_;
  ClipGridCoords(grid_x, grid_y);
}
void GridBase :: GridCoords ( int x , int y , int * grid_x , int * grid_y ) const { * grid_x = ( x - bleft_ . x ( ) ) / gridsize_ ; * grid_y = ( y - bleft_ . y ( ) ) / gridsize_ ; ClipGridCoords ( grid_x , grid_y ) ; }
Compute the given grid coordinates from image coords.
Compute the given grid coordinates from image coords .