concepts.vision.depth_smoother.depth_anything_smoother.remove_edge#

remove_edge(depth)[source]#

Remove the edge of the depth map. We will use the Canny edge detector to detect the edge of the depth map. And then we will dilate the edge to create a mask. Finally, we will set the values of the edge to 0.

Parameters:

depth (ndarray) – the depth map.

Returns:

the processed depth map and the edge mask.