Probabilistic Segmentation version that handles stack