How many basis functions are needed to reproduce coloured patterns under illuminant changes