EIN-lab / CHIPS

CHIPS, or Cellular and Hemodynamic Image Processing Suite, is an open-source MATLAB toolbox designed to analyse functional images of cells and blood vessels, primarily from two-photon microscopy. Please see the README file, which is displayed at the bottom of this page, for more information.
Other
17 stars 4 forks source link

Error while running utils.motion_correct #10

Closed pbl007 closed 2 years ago

pbl007 commented 2 years ago

Hi.

I am getting the following error:

Error using utils.convnfft.convnfft (line 171) Unable to resolve the name utils.convnfft.inplaceprod2018.

Error in utils.convnfft.calcShifts>pmatch (line 147) C = convfun(A1, A2f, 'full', convarg{:});

Error in utils.convnfft.calcShifts>pattern_matching (line 115) [dx, dy, corr] = pmatch(A1, A2, minCorr, maxshift, GPU);

Error in utils.convnfft.calcShifts (line 66) parfor iFrame = 1:nFrames

Error in utils.motion_correct>mc_convfft (line 229) [sy, sx, refImg] = utils.convnfft.calcShifts(chSeq, params.refImg, ...

Error in utils.motion_correct (line 166) [imgSeq, refImg, sx, sy] = mc_convfft(imgSeq, params);

kferrari commented 2 years ago

This is a duplicate of #4. As MATLAB's default API has changed, the mex files aren't inter-compatible between versions before and after 2018. The issue is known, but we haven't been able to fix it yet.

kferrari commented 2 years ago

We have found a fix for this problem. Motion correction should work for all MATLAB versions now. There might be a slightly better performance in versions prior to 2018.

pbl007 commented 2 years ago

That is pretty cool! Thanks!

Pablo Blinder, PhD http://pblab.tau.ac.il http://pblab.tau.ac.il/en Neurobiology, Biochemistry and Biophysics School, George S. Wise Faculty of Life Sciences, and Sagol School for Neuroscience, Tel Aviv University

On Sep 25, 2021, at 23:25, Kim Ferrari @.**@.>> wrote:

We have found a fix for this problem. Motion correction should work for all MATLAB versions now. There might be a slightly better performance in versions prior to 2018.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/EIN-lab/CHIPS/issues/10#issuecomment-927184730, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AALGGKIQ5UKR5TZNO3EIMEDUDY427ANCNFSM5EEW7KRA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.