JinghaoLu / MIN1PIPE

A MINiscope 1-photon-based Calcium Imaging Signal Extraction PIPEline.
GNU General Public License v3.0
56 stars 25 forks source link

Code fails following "done data prep" - Error using interp1>reshapeAndSortXandV #33

Open mcg1298 opened 4 years ago

mcg1298 commented 4 years ago

Hi,

I had MIN1PIPE working well recently, and today it threw an error on a video that previously worked and I'm not quite sure how to fix it. It happened right after "Begin inter-section ... Done data prep". Any suggestions on how I can fix it?

Thank you

Error:

Error using interp1>reshapeAndSortXandV (line 417) X must be a vector.

Error in interp1 (line 93) [X,V,orig_size_v] = reshapeAndSortXandV(varargin{1},varargin{2});

Error in get_trans_score (line 91) acorr(idss) = interp1(ids, acorr(ids), idss, 'pchip', 'extrap');

Error in logdemons_unit (line 52) sco = get_trans_score(cat(3, imref, imcur), [], [], [], mq, maskc);

Error in lk_logdemons_unit (line 93) [img, sxt, syt] = logdemons_unit(imref, imcur, pixs, scl, sigma_x, sigma_f, sigma_f, maskc);

Error in inter_section (line 84) parfor i = 1: nl

Error in frame_reg (line 107) m = inter_section(m, sttn, se, pixs, scl, sigma_x, sigma_f, sigma_d, maskc);

Error in min1pipe (line 108) [m, corr_score, raw_score, scl] = frame_reg(m, imaxy, se, Fsi_new, pixs, scl, sigma_x, sigma_f, sigma_d);

JinghaoLu commented 4 years ago

@mcg1298 I bet there's some required toolbox removed from your matlab path somehow.