For a given kernel, returns an array of offsets. These consist of a cell offset (eg {x:-1,y:-1}) and the value at that kernel position.