Added HoG descriptor generation code.