A statistical approach to snakes for bimodal and trimodal imagery | Synapse