v3d.Point2d#

class visu3d.Point2d(**kwargs)[source]#

Bases: visu3d.array_dataclass.DataclassArray

2d point cloud.

p#

2d (x, y) == (u, v) == (w, h) coordinates

Type:

FloatArray[’*shape 2’]

rgb#

uint8 color

Type:

Optional[ui8[’*shape 3’]]

depth#

The depth in camera coordinates.

Type:

Optional[FloatArray[’*shape 1’]]

p: FloatArray['*shape 2']#
depth: FloatArray['*shape 1'] | None = None#
rgb: ui8['*shape 3'] | None = None#
fig_config: plotly.TraceConfig = TraceConfig(     name=None,     num_samples=50000, )#
clip(min: etils.enp.array_types.typing.FloatArray | float | None = None, max: etils.enp.array_types.typing.FloatArray | float | None = None) visu3d.dc_arrays.point.Point3d[source]#

Clip the position coordinates to the (min, max) boundaries.

apply_cam_from_px(spec: camera_spec_lib.CameraSpec) Point3d[source]#

Apply the px_from_cam @ self transformation.

make_traces() list[plotly.basedatatypes.BaseTraceType][source]#

Construct the traces of the given object.