Skip to contents

Checks for gross inconsistencies between voxel and parcel coordinates, such as vastly different ranges or potential scale issues, by comparing their bounding boxes.

Usage

.validate_coordinate_inputs(
  voxel_coords,
  parcel_coords,
  scale_threshold = 10,
  absolute_range_threshold = 50
)

Arguments

voxel_coords

Matrix of voxel coordinates (V_v x 3).

parcel_coords

Matrix of parcel coordinates (V_p x 3).

scale_threshold

Factor by which coordinate spans can differ before warning.

absolute_range_threshold

Warn if ranges don't overlap and are separated by more than this.