fncornerint corner(const Geometry & g, int y, int x)sourceeditWhere corner (y, x) reads in a plane, or -1 when it reads nothing (a zero-padded sample outside the map). A border-padded corner past the edge — the far neighbour of the last sample — reads the edge.