Nonparametric training of snakes to find indistinct boundaries