cloudViewer.ml.torch.vis.Colormap#

class cloudViewer.ml.torch.vis.Colormap(points)[source]#

This class is used to create a color map for visualization of points.

class Point(value, color)[source]#

Initialize the class.

Parameters:
  • value – The scalar value index of the point.

  • color – The color associated with the value.

__init__(value, color)[source]#
__repr__()[source]#

Represent the color and value in the colormap.

__init__(points)[source]#
calc_color_array(values, range_min, range_max)[source]#

Generate the color array based on the minimum and maximum range passed.

Parameters:
  • values – The index of values.

  • range_min – The minimum value in the range.

  • range_max – The maximum value in the range.

Returns:

An array of color index based on the range passed.

calc_u_array(values, range_min, range_max)[source]#

Generate the basic array based on the minimum and maximum range passed.

static make_greyscale()[source]#

Generate a greyscale colormap.

static make_rainbow()[source]#

Generate the rainbow color array.