how can i update it to compute HOF (histogram of optical flow)??as the ouput of optical flow is gradient magnitudes from optical flow fields , so really i compute gradient for opticl flow so i don't need to compute gradient again in embeded code of HOG