Evaluate w.r.t. a Mesh
- class limap.evaluation.MeshEvaluator
- ComputeDistLine(self: limap._limap._evaluation.MeshEvaluator, line: limap._limap._geometry.Line3d, n_samples: SupportsInt | SupportsIndex = 1000) float
Compute the distance for a set of uniformly sampled points along the line
- ComputeDistPoint(self: limap._limap._evaluation.MeshEvaluator, arg0: Annotated[numpy.typing.ArrayLike, numpy.float64, '[3, 1]']) float
Compute the distance from a query point to the mesh
:param
np.arrayof shape: The query point :typenp.arrayof shape: 3,- Returns:
The distance from the point to the GT mesh
- Return type:
float
- ComputeInlierRatio(self: limap._limap._evaluation.MeshEvaluator, line: limap._limap._geometry.Line3d, threshold: SupportsFloat | SupportsIndex, n_samples: SupportsInt | SupportsIndex = 1000) float
Compute the percentage of the line lying with a certain threshold to the mesh
- ComputeInlierSegs(self: limap._limap._evaluation.MeshEvaluator, lines: collections.abc.Sequence[limap._limap._geometry.Line3d], threshold: SupportsFloat | SupportsIndex, n_samples: SupportsInt | SupportsIndex = 1000) list[limap._limap._geometry.Line3d]
Compute the inlier parts of the lines that are within a certain threshold to the mesh, for visualization.
- Parameters:
lines (list[
limap.geometry.Line3d]) – Input 3D line segmentsthreshold (float) – threshold
n_samples (int) – number of samples (default = 1000)
- Returns:
Inlier parts of all the lines, useful for visualization
- Return type:
list[
limap.geometry.Line3d]
- ComputeOutlierSegs(self: limap._limap._evaluation.MeshEvaluator, lines: collections.abc.Sequence[limap._limap._geometry.Line3d], threshold: SupportsFloat | SupportsIndex, n_samples: SupportsInt | SupportsIndex = 1000) list[limap._limap._geometry.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.geometry.Line3d]) – Input 3D line segmentsthreshold (float) – threshold
n_samples (int) – number of samples (default = 1000)
- Returns:
Outlier parts of all the lines, useful for visualization
- Return type:
list[
limap.geometry.Line3d]
- __init__(*args, **kwargs)
Overloaded function.
__init__(self: limap._limap._evaluation.MeshEvaluator) -> None
Default constructor
__init__(self: limap._limap._evaluation.MeshEvaluator, arg0: str, arg1: typing.SupportsFloat | typing.SupportsIndex) -> None
Constructor from a mesh file (str) and a scale (float)