Syntactic analysis of two-dimensional visual signals in the presence of noise