concepts.vision.depth_smoother.depth_anything_smoother.fit_spline#
- fit_spline(depth, predicted_depth, k=3, s=10, return_sorted_points=False)[source]#
Fit a spline to the depth map using the predicted depth map. In particular, we will fit depth = f(predicted_depth).
- Parameters:
- Returns:
- the fitted spline. If return_sorted_points is True, we will also return the sorted points of the depth map and the predicted depth map,
which can be used for visualization.