Space technology developed for observing the Earth is now being used to recognise and compare colour variations in dyed fabrics.