densify_shapes

menpofit.builder.densify_shapes(shapes, reference_frame, transform)[source]

Function that densifies a set of sparse shapes given a reference frame.

Parameters
  • shapes (list of menpo.shape.PointCloud) – The input shapes.

  • reference_frame (menpo.image.BooleanImage) – The reference frame, the mask of which will be used.

  • transform (menpo.transform.Transform) – The transform to use for mapping the dense points.

Returns

dense_shapes (list of menpo.shape.PointCloud) – The list of dense shapes.