const bilinearGrayF = (sample: IntSampler): FloatSampler => {
    sample = bilinearGray(sample);
    return (x, y) => [sample(x, y)];
};