An empirical comparison of machine learning algorithms for generic image classification