cvt.metrics
Module including routines computing metrics.
This module includes the following functions:
MAE(estimate, target, reduction_dims, mask=None, relative=False)
Mean Absolute Error.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
estimate
|
. |
required | |
target
|
. |
required | |
reduction_dims
|
. |
required | |
mask
|
. |
None
|
|
relative
|
. |
False
|
Returns: .
Source code in src/cvt/metrics.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
RMSE(estimate, target, mask=None, relative=False)
Root Mean Squared Error.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
estimate
|
. |
required | |
target
|
. |
required | |
mask
|
. |
None
|
|
relative
|
. |
False
|
Returns: .
Source code in src/cvt/metrics.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
abs_error(est_depth, gt_depth)
Computes the absolute error between an estimated and groun-truth depth map.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
est_depth
|
ndarray
|
Estimated depth map. |
required |
gt_depth
|
ndarray
|
Ground-truth depth map. |
required |
Returns:
Type | Description |
---|---|
ndarray
|
The absolute error map for the estimated depth map. |
Source code in src/cvt/metrics.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
accuracy_eval(est_ply, gt_ply, mask_th, est_filt=None, gt_filt=None)
Computes the accuracy of an estimated point cloud against the provided ground-truth.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
est_ply
|
ndarray
|
Estimated point cloud to be evaluated. |
required |
gt_ply
|
ndarray
|
Ground-truth point cloud. |
required |
mask_th
|
float
|
Masking threshold used to remove points from the evaluation farther than a specified distance value. |
required |
est_filt
|
Optional[ndarray]
|
Optional filter to remove unwanted point from the estimated point cloud in the evaluation |
None
|
gt_filt
|
Optional[ndarray]
|
Optional filter to remove unwanted point from the ground-truth point cloud in the evaluation |
None
|
Returns:
Name | Type | Description |
---|---|---|
valid_est_ply |
PointCloud
|
Point cloud containing all the valid evaluation points after filtering. |
dists_est |
ndarray
|
Estimated distances of all valid points in the estimated point cloud to the closest point in the ground-truth point cloud. |
colors_est |
ndarray
|
Estimated colors for the points in the valid point cloud. |
Source code in src/cvt/metrics.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
|
completeness_eval(est_ply, gt_ply, mask_th=20.0, est_filt=None, gt_filt=None)
Computes the completeness of an estimated point cloud against the provided ground-truth.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
est_ply
|
PointCloud
|
Estimated point cloud to be evaluated. |
required |
gt_ply
|
PointCloud
|
Ground-truth point cloud. |
required |
mask_th
|
float
|
Masking threshold used to remove points from the evaluation farther than a specified distance value. |
20.0
|
est_filt
|
Optional[ndarray]
|
Optional filter to remove unwanted point from the estimated point cloud in the evaluation |
None
|
gt_filt
|
Optional[ndarray]
|
Optional filter to remove unwanted point from the ground-truth point cloud in the evaluation |
None
|
Returns:
Name | Type | Description |
---|---|---|
ply_points |
ndarray
|
Point cloud vertices containing all the valid evaluation points after filtering. |
dists |
ndarray
|
Distances of all valid points in the ground-truth point cloud to the closest point in the estimated point cloud. |
colors |
ndarray
|
Colors for the points in the valid point cloud. |
Source code in src/cvt/metrics.py
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
|
filter_outlier_points(est_ply, gt_ply, outlier_th)
Filters out points from an estimated point cloud that are farther than some threshold to the ground-truth point cloud.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
est_ply
|
PointCloud
|
Estimated point cloud to filter. |
required |
gt_ply
|
PointCloud
|
Ground-truth point cloud for reference. |
required |
outlier_th
|
float
|
Distance threshold used for filtering. |
required |
Returns:
Type | Description |
---|---|
PointCloud
|
The filtered point cloud. |
Source code in src/cvt/metrics.py
164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
|