Experimental and theoretical study of pattern identification in physical systems with O(2) symmetry