modosaic.depth.validators.impl.depth_seg_boundary_consistency_validator¶
modosaic.depth.validators.impl.depth_seg_boundary_consistency_validator ¶
DepthSegBoundaryConsistencyValidator ¶
DepthSegBoundaryConsistencyValidator(boundary_thickness=1, tolerance_radius=2, depth_edge_quantile=0.9)
Bases: DepthValidator[BoundaryAlignmentStats]
Compare depth-map edges with segmentation-mask boundaries.
Initialize the validator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
boundary_thickness
|
int
|
Mask boundary thickness in pixels. |
1
|
tolerance_radius
|
int
|
Pixel tolerance used for precision and recall. |
2
|
depth_edge_quantile
|
float
|
Quantile threshold for depth edge detection. |
0.9
|
Source code in modosaic/depth/validators/impl/depth_seg_boundary_consistency_validator.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
validate ¶
validate(record, generated, masks=None)
Compute boundary alignment between generated depth and masks.
Source code in modosaic/depth/validators/impl/depth_seg_boundary_consistency_validator.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |