S is the voxel-to-space transformation of the image that we want to warp forward. By default yes it will be the affine matrix of the static image (most of the time we'll want to forward images in that domain), but in general any image (with arbitrary voxel-to-space transformation) can be warped because the transformation is defined in physical space.