Heterogeneous bag-of-features for object/scene recognition