Why to keep the raw mask after filling depth holes
Hole filling makes a display look more continuous by borrowing depth from nearby samples. At a workpiece boundary, that substitute depth may come from the background.
How to test it
Overlay the original invalid-pixel mask on a filled image containing a distinct foreground and background. Keep both outputs so the review can identify which distances were actually measured.

ZHILIANHAI