concepts.vision.depth_smoother.depth_anything_smoother.clustering_depth#

clustering_depth(depth, predicted_depth, n_clusters=10)[source]#

Cluster the depth map using the predicted depth map.

Parameters:
  • depth (ndarray) – the observed depth map.

  • predicted_depth (ndarray) – the predicted depth map.

  • n_clusters (int) – the number of clusters to use.

Returns:

the KMeans model and the labels.