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
- 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 :typenp.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
- 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 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.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 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.base.Line3d
]
- __init__(*args, **kwargs)
Overloaded function.
__init__(self: _limap._evaluation.MeshEvaluator) -> None
Default constructor
__init__(self: _limap._evaluation.MeshEvaluator, arg0: str, arg1: float) -> None
Constructor from a mesh file (str) and a scale (float)