Automating detection of landscape patterning: a similarity-based approach