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

An error appeared when NoRMCorre ran on Matlab. #16

Closed puredragonzcl closed 6 years ago

puredragonzcl commented 6 years ago

In NoRMCorre,when I selected a local tif file(transformed by a bmp file),an error appeared on function imwarp: 错误使用 imwarp 需要的 tform 应为以下类型之一:

images.geotrans.internal.GeometricTransformation

但其类型是 double。Meaning that I use the imwrap incorrectly,the tform should be this type:images.geotrans.internal.GeometricTransformation.But actually it was double.

I don't konw how to solve this problem,so ask for help and reply.Thank you!

epnev commented 6 years ago

I can't be sure what the problem is here. Does the code run if you set options.correct_bidir = false ? This will bypass the usage of imwarp

puredragonzcl commented 6 years ago

The problem has been solved.The code can be run on matlab2017.Primarily I used the 2014 version.Thanks for your reply!