Fixed workflow segmentation algorithm training - trained algorithm matches trained algorithm produced by Matlab implementation.