After this change, the spatial_derivatives() modes forward_central_backward (finite differences), bspline, and gaussian produce similar results. For flow fields, it is important to set spacing correctly. The default assumes flow fields with respect to normalized grid coordinates with align_corners=True.
After this change, the
spatial_derivatives()
modesforward_central_backward
(finite differences),bspline
, andgaussian
produce similar results. For flow fields, it is important to setspacing
correctly. The default assumes flow fields with respect to normalized grid coordinates withalign_corners=True
.