Automatic segmentation of real-time trajectories matches segmentation prosed by Matlab implementation.