Online Learning for automatic segmentation of 3D data