Skip to content

observations

observations #

The observations scalar; a loaded Observations is the .npz path.

Observations #

Bases: NumpyScalar

Which keypoint of which image saw which point, one row per observation.

  • point: the index into the reconstruction's points.
  • image: the image index of the observing keypoint.
  • keypoint: the index into that image's keypoints.

Analysis-only: produced by a recipe, never captured, so it has no platform mirror and no place in a schema.

Source code in capturegraph-recipes/capturegraph_recipes/types/reconstruction/observations.py
class Observations(cg.NumpyScalar, name="edu.cornell.observations"):
    """Which keypoint of which image saw which point, one row per observation.

    - ``point``: the index into the reconstruction's points.
    - ``image``: the image index of the observing keypoint.
    - ``keypoint``: the index into that image's keypoints.

    Analysis-only: produced by a recipe, never captured, so it has no platform
    mirror and no place in a schema.
    """

    __slots__ = ()

    analysis_only = True

    layout = {
        "point": ("int32", (-1,)),
        "image": ("int32", (-1,)),
        "keypoint": ("int32", (-1,)),
    }