I have a number of frames from a video sequence that I use to estimate optical flow fields in between:
[u, v] = compute_optical_flow(series);
I can play the video sequence using implay:
implay(series);
And I can plot a single flow on top of a single image using quiver:
imshow(series(123,:,:));
hold on;
quiver(u(123,:,:), v(123,:,:));
However, I also want to be able to play the whole time series of velocity-vectors stored in u and v (if possible on top of the corresponding image frames). So what I am looking for is implay but for velocity fields instead of images.
Any ideas?
Thanks!
The simple hack is to use the
pauseMATLAB function. You code should look something like this: