PointCloud

PointCloud#

class rapidtools.processing.street_structures.PointCloud(cluster_id: str, lon: float, lat: float, points: ndarray, rotations: ndarray, translations: ndarray)[source]#

Bases: object

One structure-from-motion cluster of a survey.

Variables:
  • cluster_id (str) – Mapillary identifier of the cluster.

  • lon (float) – Longitude of the cluster’s local origin.

  • lat (float) – Latitude of the cluster’s local origin.

  • points (numpy.ndarray) – (n, 3) point coordinates: meters east and north of the origin, and altitude.

  • rotations (numpy.ndarray) – (m, 3) axis-angle rotation of every shot (world to camera), the same vector an image’s computed_rotation holds.

  • translations (numpy.ndarray) – (m, 3) translation of every shot.

Methods

shot_index

Shots keyed by their rounded rotation vector.

shot_index() → dict[tuple[float, ...], int][source]#

Shots keyed by their rounded rotation vector.