Rapid and robust algorithms for detecting colour targets