Dense Correspondence using Multilevel Segmentation and Affine Transformation