Pipet would be the simplest way to go, I’m not sure of other alternative though. To have better control over the threshold use some color correction for the depth map like cranking up brightness & saturation. Maybe some blur helps to have better result at the edges for smoother distribution.