cloudViewer.ml.torch.vis.Model#

class cloudViewer.ml.torch.vis.Model[source]#

The class that helps build visualization models based on attributes, data, and methods.

class BoundingBoxData(name, boxes)[source]#

The class to define a bounding box that is used to describe the target location.

Parameters:
  • name – The name of the pointcloud array.

  • boxes – The array of pointcloud that define the bounding box.

__init__(name, boxes)[source]#
__init__()[source]#
calc_bounds_for(name)[source]#

Calculate the bounds for a pointcloud.

create_cams(name, cam_dict, key='img', update=False)[source]#

Create images based on the data provided.

The data should include name and cams.

create_point_cloud(data)[source]#

Create a point cloud based on the data provided.

The data should include name and points.

get_attr(name, attr_name)[source]#

Get an attribute from data based on the name passed.

get_attr_minmax(attr_name, channel)[source]#

Get the minimum and maximum for an attribute.

get_attr_shape(name, attr_name)[source]#

Get a shape from data based on the name passed.

get_available_attrs(names)[source]#

Get a list of attributes based on the name.

is_loaded(name)[source]#

Check if the data is loaded.

load(name, fail_if_no_space=False)[source]#

If data is not loaded, then load the data.

unload(name)[source]#
bounding_box_prefix = 'Bounding Boxes/'#