Digital Terrain from a Two-Step Segmentation and Outlier-Based Algorithm