visualize_pointclouds

menpowidgets.base.visualize_pointclouds(pointclouds, figure_size=(10, 8), style='coloured', browser_style='buttons', custom_info_callback=None)[source]

Widget that allows browsing through a list of menpo.shape.PointCloud, menpo.shape.PointUndirectedGraph, menpo.shape.PointDirectedGraph, menpo.shape.PointTree, menpo.shape.TriMesh or any subclass of those. Any instance of the above can be combined in the list.

The widget has options tabs regarding the renderer (lines, markers, numbering, zoom, axes) and saving the figure to file.

Parameters:
  • pointclouds (list) – The list of objects to be visualized. It can contain a combination of menpo.shape.PointCloud, menpo.shape.PointUndirectedGraph, menpo.shape.PointDirectedGraph, menpo.shape.PointTree, menpo.shape.TriMesh or subclasses of those.
  • figure_size ((int, int), optional) – The initial size of the rendered figure.
  • style ({'coloured', 'minimal'}, optional) – If 'coloured', then the style of the widget will be coloured. If minimal, then the style is simple using black and white colours.
  • browser_style ({'buttons', 'slider'}, optional) – It defines whether the selector of the objects will have the form of plus/minus buttons or a slider.
  • custom_info_callback (function or None, optional) – If not None, it should be a function that accepts a pointcloud and returns a list of custom messages to be printed per pointcloud. Each custom message will be printed in a separate line.