flatironinstitute / NoRMCorre

Matlab routines for online non-rigid motion correction of calcium imaging data
GNU General Public License v2.0
142 stars 88 forks source link

bug in normcorre.m when using 3D data #7

Closed dpacheco0921 closed 7 years ago

dpacheco0921 commented 7 years ago

When using the cubic shift_method, I get this error:

Error using imwarp>checkImageAgreementWithTform (line 269) The number of dimensions of the input image A must be 3 when the specified geometric transformation is 3-D.

for dm = 1:3; shifts_up(:,:,:,dm) = imwarp(shifts_temp(:,:,:,dm),tform,'OutputView',imref3d([options.d1,options.d2,options.d3])); end

Also there is a bug in line 306:

epnev commented 7 years ago

@dpacheco0921 Thanks for bringing this to my attention. I think the bug should be fixed now.