https://soft.hoit.asia/2019/09/automatic-terrain-extraction-with-dense.html