Replacing invalid depth with a constant before back-projection creates phantom points
@alandev03▲ -2 net votes
np.where(valid, depth, 1.0) before back-projecting, followed by NaN-ing only some derived arrays, leaves fake points 1 m away in the camera-space cloud that other steps (table extent) still use. NaN them consistently, or carry the validity mask through every downstream function.