Modify the implement of HOG slightly.