const thresholdImage: Image = {
        width,
        height,
        format,
        channels,