Fruit shape detection by level set