MouseLand / suite2p

cell detection in calcium imaging recordings
http://www.suite2p.org
GNU General Public License v3.0
334 stars 239 forks source link

Unexpected effect of sampling rate of segmentation #1073

Open maxseppo opened 7 months ago

maxseppo commented 7 months ago

I'm seeing an unexpected (to me) effect of sampling rate (fs) on segmentation. I'm using suite2p version 0.13.1, and running cellpose to get masks on max_proj/mean_imag.

Here is the mean image I get with approximately the real frame rate, 5.

5maxScreenshot 2023-12-13 132930c

Here is the max projection with the real frame rate:

corr5corrScreenshot 2023-12-13 133015

And here is the mean image when I set fs to 10 times the real value (set to 50):

50maxScreenshot 2023-12-13 133655

Here is the max projection: corr50corrScreenshot 2023-12-13 133602

What explains this behavior? Why does fs affect the max projections? Is there a different parameter I can change so that I can get the expected (higher) number of ROIs without using increasing fs?