MooreNeighbour
Moore neighbourhood, also spelled Moore neighborhood in British English, is a concept used in cellular automata and image processing to describe the set of grid cells surrounding a central cell on a two-dimensional square lattice that are considered its neighbors. For radius 1, the Moore neighbourhood consists of the eight surrounding cells: north, northeast, east, southeast, south, southwest, west, and northwest. The central cell itself is not included. It is named after Edward F. Moore, who introduced the idea in theoretical computer science.
Generalization and contrast: The radius parameter r expands the neighbourhood to all cells with Chebyshev distance
Applications and relevance: In cellular automata, many rule sets use the Moore neighbourhood to determine a
Edge cases and general remarks: On finite grids, edge handling schemes such as toroidal wrapping, reflection,