An implementation of weighted color histogram