Region-based depth recovery. Takes as input a sparse depth map (with NaN's at the location of missing values) and a guidance segmentation label matrix, and returns the recovered depth map. This is the implementation of the paper:
S. Pertuz, J. Kamarainen, Region-based depth recovery for highly sparse depth maps, proc. International Conference on Image Processing, 2017.
Said Pertuz (2020). Depth-map inpainting (https://www.mathworks.com/matlabcentral/fileexchange/64546-depth-map-inpainting), MATLAB Central File Exchange. Retrieved .