Constructing similarity measures for colour images