Evaluate w.r.t. a Mesh

class limap.evaluation.MeshEvaluator
ComputeDistLine(self: _limap._evaluation.MeshEvaluator, line: _limap._base.Line3d, n_samples: int = 1000) float

Compute the distance for a set of uniformly sampled points along the line

Parameters:
  • line (Line3d) – Line3d: instance

  • n_samples (int, optional) – number of samples (default = 1000)

Returns:

the computed distances

Return type:

np.array of shape (n_samples,)

ComputeDistPoint(self: _limap._evaluation.MeshEvaluator, arg0: numpy.ndarray[numpy.float64[3, 1]]) float

Compute the distance from a query point to the mesh

:param np.array of shape: The query point :type np.array of shape: 3,

Returns:

The distance from the point to the GT mesh

Return type:

float

ComputeInlierRatio(self: _limap._evaluation.MeshEvaluator, line: _limap._base.Line3d, threshold: float, n_samples: int = 1000) float

Compute the percentage of the line lying with a certain threshold to the mesh

Parameters:
  • line (Line3d) – Line3d: instance

  • threshold (float) – threshold

  • n_samples (int, optional) – number of samples (default = 1000)

Returns:

The computed percentage

Return type:

float

ComputeInlierSegs(self: _limap._evaluation.MeshEvaluator, lines: List[_limap._base.Line3d], threshold: float, n_samples: int = 1000) List[_limap._base.Line3d]

Compute the inlier parts of the lines that are within a certain threshold to the mesh, for visualization.

Parameters:
  • lines (list[limap.base.Line3d]) – Input 3D line segments

  • threshold (float) – threshold

  • n_samples (int) – number of samples (default = 1000)

Returns:

Inlier parts of all the lines, useful for visualization

Return type:

list[limap.base.Line3d]

ComputeOutlierSegs(self: _limap._evaluation.MeshEvaluator, lines: List[_limap._base.Line3d], threshold: float, n_samples: int = 1000) List[_limap._base.Line3d]

Compute the outlier parts of the lines that are at least a certain threshold far away from the mesh, for visualization.

Parameters:
  • lines (list[limap.base.Line3d]) – Input 3D line segments

  • threshold (float) – threshold

  • n_samples (int) – number of samples (default = 1000)

Returns:

Outlier parts of all the lines, useful for visualization

Return type:

list[limap.base.Line3d]

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: _limap._evaluation.MeshEvaluator) -> None

    Default constructor

  2. __init__(self: _limap._evaluation.MeshEvaluator, arg0: str, arg1: float) -> None

    Constructor from a mesh file (str) and a scale (float)