menpofit.builder.compute_reference_shape(shapes, diagonal, verbose=False)[source]

Function that computes the reference shape as the mean shape of the provided shapes.

  • shapes (list of menpo.shape.PointCloud) – The set of shapes from which to build the reference shape.

  • diagonal (int or None) – If int, it ensures that the mean shape is scaled so that the diagonal of the bounding box containing it matches the provided value. If None, then the mean shape is not rescaled.

  • verbose (bool, optional) – If True, then progress information is printed.


reference_shape (menpo.shape.PointCloud) – The reference shape.