The base-resolution comprises twelve pixels. baseNeighbours returns
a map from the base pixel index bp to the vector of base pixels
that are neighbours of bp, in counterclockwise order of
direction: S,SE,E,NE,N,NW,W,SW. The presence of -1 indicates
that the corresponding direction is empty.
Usage
baseNeighbours(bp)
Value
A numeric vector of eight neighbouring base pixel indices in the order S, SE, E, NE, N, NW, W, SW. Missing neighbours are coded as -1. Returns NULL for an index outside 1 to 12.