JinghaoLu / MIN1PIPE

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

Error in registration #40

Closed rajatsaxena closed 4 years ago

rajatsaxena commented 4 years ago

I am using the demo.tif provided in the dataset and running the min1pipe.m script. This is the error message that I get.. How can I resolve this? Thank you

Error using intra_section (line 76)
Expected BlockSize to be an array with all of the values >= 5.

Error in frame_reg (line 92)
        m = intra_section(m, stt, stp, pixs, scl, sigma_x, sigma_f, sigma_d, flag, 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

Did you install all the packages? Like computer vision toolbox?

rajatsaxena commented 4 years ago

yes all the dependencies are installed

JinghaoLu commented 4 years ago

A first guess would be that somehow, you have some bad pixels at the boundaries/corners of the field of view, that are of high values. If not, then you might need to set a break point at where you have the problem, and run the program to find out the exact problem.

rajatsaxena commented 4 years ago

I am running it on the demo.tif file provided in the repo

JinghaoLu commented 4 years ago

oh right I forgot this. Did you spatially downsample the video? For demo.tif you don't need to downsample.

rajatsaxena commented 4 years ago

No, I did not do any downsampling. Just used the default params.

JinghaoLu commented 4 years ago

I don't think I have any quick answer to this then. This should not happen, and the only way to know what exactly the problem is is to set a breakpoint and see what triggers this on your machine.

rajatsaxena commented 4 years ago

I had to just reinstall everything and it worked. Sorry for the trouble