concepts.vision.depth_smoother.depth_anything_smoother.fit_single_line#
- fit_single_line(depth, predicted_depth, target=None)[source]#
Fit a single line to the depth map using the predicted depth map.
\[egin{align*} egin{bmatrix} predicted\_depth & 1 \end{bmatrix} egin{bmatrix} k \ b \end{bmatrix} = depth \end{align*}\]- Parameters:
- Returns:
the transformed depth map. If target is not None, we will return k * target + b. Otherwise, we will return k * predicted_depth + b.