Local linear LUT method for spatial colour-correction algorithm speed-up