This function calculates the half-way transformation corresponding to its
argument. Applying this transformation results in points or images in a
space halfway between the original source and target images, which can be a
useful common space in some applications.