Computes the HOG descriptors of the given directory of images and trains a linear svm from them.