measure_distance_between_points
Measure the straight-line distance between two points in a LiDAR or depth capture to get doorway widths, shelf gaps, and other real-world spans with confidence ranges.
Instructions
Straight-line distance between two pixels of a depth capture (a doorway width, a shelf gap).
path: LiDAR/Portrait HEIC, capture bundle or metric depth file (TIFF, 16-bit PNG in mm, NPZ). point_a and point_b: [x, y] in PHOTO pixels (depth-map pixels when there is no photo). rgb_path: optional original photo (EXIF gives the focal length). reference: see measure_list_reference_objects; with a plain photo the two points must lie on the reference's surface. units: metric|imperial|both. Returns summary (quote it), confidence, measurements [distance] (+/- about 95%), warnings. A depth file without camera intrinsics is capped at low with a wide +/-. Glass, mirrors and black surfaces have no depth (NO_DEPTH_AT_POINT): pick a nearby matte point. Points under 3 cm apart are within the noise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| units | No | both | |
| point_a | Yes | ||
| point_b | Yes | ||
| rgb_path | No | ||
| reference | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||