Function ouster::sdk::algorithm::align_clouds(Eigen::Ref<const core::ArrayX3dR>, Eigen::Ref<const core::ArrayX3dR>, double&)

Function Documentation

core::Matrix4dR ouster::sdk::algorithm::align_clouds(Eigen::Ref<const core::ArrayX3dR> source_points, Eigen::Ref<const core::ArrayX3dR> target_points, double &confidence)

Estimate alignment from two point clouds.

Inputs must already be in a gravity-aligned common frame. The caller is responsible for applying any IMU-based gravity rotation and dewarping before calling. Returns source_to_target_transform.

Parameters:
  • source_points[in] Source points transformed by the result as N x 3 XYZ rows.

  • target_points[in] Reference target points as M x 3 XYZ rows.

  • confidence[out] Confidence score in [0, 1] for the estimated pose.

Throws:

std::invalid_argument – If arrays are malformed or have a row count mismatch.

Returns:

Estimated source_to_target_transform.