Spatial relationship of pixels and offset of neighbours (3D space) Offset 1 = (0 1 0), Offset 2 = (−1 1 0), Offset 3 = (−1 0 0), Offset 4 = (−1 −1 0), Offset 5 = (0 1 −1), Offset 6 = (0 0 −1), Offset 7 = (0 −1 −1), Offset 8 = (−1 0 −1), Offset 9 = (1 0 −1), Offset 10 = (−1 1 −1), Offset 11 = (1 −1 −1), Offset 12 = (−1 −1 −1) and Offset 13 = (1 1 −1)