1. A method for identifying an object within a container, said method comprising: acquiring image data representing an image; applying a morphological operator to the acquired image data to generate morphed image data; calculating a histogram based on the morphed image data; classifying the image using the calculated histogram; and outputting a classification of the image.