Semi-Global Blocking Matching(SGBM)

$$ L(p,d_i) = c(p,d_i) + min $$