A method for mosaicing medical images, particularly volumes acquired by a 3D ultrasound device. The method relies on an image-based technique that transforms a target volume to align with a reference volume. The transformation is composed of a coarse rigid transformation and a fine elastic warp. The fine transformation assumes that the two volumes are close enough for the mapping between them to be expressed in terms of their gradient values.