Skip to main content
. 2021 Feb 11;21(4):1299. doi: 10.3390/s21041299
Algorithm 1 Overview of depth alignment procedure.
Input Captured depth image Dc, estimated depth image De;
Output: aligned depth map Dc1 for Dc;
  1: Run RANSAC to find the metric scaling factor.
  2: Extract patch Pac in Dc.
  3: Calculate scaled depth values and normals of Pac.
  4: Initialize offset map O.
  5: Find a patch Qbe in De based on O.
  6: for aiPac and biQbe do
  7:    Calculate depth difference ddi and normal angle angi between ai and bi.
  8:    Run PatchMatch propagation to update offset map O.
  9: Mapping Dc to Dc1 based on O.