Improving area-based matching by using surface gradients in the pixel co-ordinate transformation