Code to fill missing holes in a depth map using a second-order smoothness prior. Implemented in matlab using graph cuts. Accompanies the paper "Herrera C., D., Kannala, J., Ladicky, L., Heikkila, J., Depth map inpainting under a second-order smoothness prior, SCIA, 2013"