A comparison of semiglobal and local dense matching algorithms for surface reconstruction