PointCloudViewer

class menpo.visualize.base.PointCloudViewer(figure_id, new_figure, points)[source]

Bases: object

Base PointCloud viewer that abstracts away dimensionality.

Parameters:

figure_id : object

A figure id. Could be any valid object that identifies a figure in a given framework (string, int, etc)

new_figure : bool

Whether the rendering engine should create a new figure.

points : (N, D) ndarray

The points to render.

render(**kwargs)[source]

Select the correct type of pointcloud viewer for the given pointcloud dimensionality.

Parameters:

kwargs : dict

Passed through to pointcloud viewer.

Returns:

viewer : Renderer

The rendering object.

Raises:

DimensionalityError :

Only 2D and 3D viewers are supported.