Multi-modal Medical Image Registration by Local Affine Transformations