In progress: affine to similarity rectification.