A model of pre-attentive region definition in visual patterns