An Image Processing and Pattern Analysis Approach for Food Recognition