Basic appearance-based pixel annotation which uses bag-of-visual-words to describe the neighborhood of each pixel and integral images to obtain the classification score efficiently. Based on: D. Aldavert, A. Ramisa, R. Toledo, R. López de Mántaras, "Efficient Object Pixel-Level Categorization using Bag of Features", ISVC 2009.