How to compute space-time gradients in video processing
7 views (last 30 days)
David Young on 28 Jun 2011
The issue with image gradients is usually how much smoothing of the image data to do. This is a question not just of the noise in the images, but also of the spatial and temporal scales at which you want to estimate the gradients. You may well have to experiment with smoothing techniques and their associated parameters to get a useful result.
If you are happy to estimate the temporal gradient from only a pair of frames (more precise estimation methods may use more than 2 frames), and you are happy with Gaussian smoothing, then you could use the function gradients_xyt from this FEX contribution.