outline_memberships#
- rapidtools.processing.street_instances.outline_memberships(points: ndarray, shots: Mapping[str, tuple[ndarray, ndarray]], outlines: Mapping[str, Mapping[Any, Sequence[ndarray]]], max_range_m: float = 40.0) tuple[csr_matrix, ndarray, list[str], list[BaseGeometry], set][source]#
Which reconstructed points every outline holds.
- Parameters:
points –
(n, 3+)points in the local frame.shots – Rotation matrix and camera center of every image.
outlines – For every image, its instances: the rings (normalized
(u, v)vertices) of each.max_range_m – Farthest a frame collects points.
- Returns:
tuple – A sparse
(points, outlines)matrix with a one where the outline holds the point and its frame can see it; for every point, the number of frames that see it; the image of every outline; its shape in the image; and the pairs of outlines of one frame that overlap.
Example
>>> held, seen, images, shapes, twice = outline_memberships( ... points, shots, outlines) >>> held.shape (1017554, 10989)