clear;close all;clc
fdir = './';
fname    = 'tracks';

ImagingInterval = 3588;      % Imaging interval in ms
maxDisplacement = 3;         % maximal allowed displacement for one step in px
dir_for_mask = './mask.mat'; % location of the peak detection results

paths = sptFromPosList(fdir,fname,ImagingInterval,maxDisplacement,dir_for_mask);
% if ToSave = 1, saves the outputs
% paths: x | y | image ID | path ID

%%