flatironinstitute / CaImAn-MATLAB

Complete Matlab pipeline for large scale calcium imaging data analysis
GNU General Public License v2.0
252 stars 147 forks source link

Fix two resizing bugs #37

Closed fabiansinz closed 8 years ago

fabiansinz commented 8 years ago

In initialize_components.m the variable Cin was not properly resized when K changed. For example, K might have been 128 but the init_method only detected 77 components. While Ain was resized correctly, Cin was not. That lead to an inconsistent state for spatial updates.

In utilities/greedyROI_corr.m using options.d* is incorrect if spatial downsampling is performed.

epnev commented 8 years ago

Thanks!

fabiansinz commented 8 years ago

Welcome. Thanks for the package.