3D Data Segmentation by Local Classification and Markov Random Fields