Creates the histogram vector.

A set of descriptors extracted from an image is compared to the learned visual vocabulary codebook.
The comparison can be either hard (for each feature find the closest codeword, and vote +1 to that bin), or soft (vote each codeword as a function of the distance from each patch).