SMS dit: Estimating the affine transformation between textures