The Motio tool lets you generate forward and backward motion vectors with an image source. Motion vectors can be used as inputs for a wide variety of image transformation, analysis, or restoration tools. In Composite, Motion Vectors can be used as inputs to the Retimer tool (see Retiming Footage with the Retimer Tool), the Blur tool (see About Blurs), the Remove Dust tool (see Remove Dust Tool), and the Remove Grain tool (see Removing Grain from a Composition).
To avoid nonsense backward vectors on the first frame and nonsense forward vectors on the last frame, the repeat mode of the clip should be such that the image before the first frame and the image after the last frame are similar or identical to the first and last frames, respectively.