def neighbour(x,y,image):
    """Return 8-neighbours of image point P1(x,y), in a clockwise order"""
    img = image.copy()
    x_1, y_1, x1, y1 = x-1, y-1, x+1, y+1;
    return [img[x_1][y], img[x_1][y1], img[x][y1], img[x1][y1], img[x1][y], img[x1][y_1], img[x][y_1], img[x_1][y_1]]