Canny Algorithm, Cosmic Strings and the Cosmic Microwave Background