concepts.vision.depth_smoother.depth_anything_smoother#

Use the Depth Anything v2 model to smooth the depth map.

Functions

clustering_depth(depth, predicted_depth[, ...])

Cluster the depth map using the predicted depth map.

fit_single_line(depth, predicted_depth[, target])

Fit a single line to the depth map using the predicted depth map.

fit_spline(depth, predicted_depth[, k, s, ...])

Fit a spline to the depth map using the predicted depth map.

fit_spline_ransac(depth, predicted_depth[, ...])

Fit a spline to the depth map using the predicted depth map.

remove_edge(depth)

Remove the edge of the depth map.

sample_and_retrieve_corresponding_depths_flat(...)

Sample n points from the depth map and the predicted depth map, and return the corresponding values.

Classes

DepthAnythingV2Smoother

The Depth Anything V2 smoother.

DepthAnythingV2SmootherConfig

DepthAnythingV2SmootherConfig(model_size, mode, remove_edge, curve_smooth, nr_samples, nr_sample_points)