Extract HOG from residual frames