Automatic registration of ocular fundus images