Detection of parts in patterns and images.

Detection of parts in patterns and images.