code: forcing alignment based on HOG features