Matrix description of general motion correction applied to multishot images | Synapse