LabeoTech / Umit

universal mesoscale Imaging Toolbox
GNU General Public License v3.0
9 stars 3 forks source link

Correlation matrices do not correspond to seed pixel correlation maps #46

Closed C-A25 closed 1 year ago

C-A25 commented 1 year ago

When using the following configuration pipelines with identical parameters, the correlation matrix obtained from the same calcium imaging acquisition do not correspond to its respective seed pixel correlation map. The same issue arises with all types of correlation matrices (centroid, avg, etc.). image image

The SPCM indicates an absence of correlation while it remains strong with the avg_vs_avg correlation matrix (ex. V1right vs V1left). image image

BrunoOFSouza commented 1 year ago

Hi, I compared the correlation values from both the SCPMap and the correlation matrix and everything seems fine. All 3 algorithms work. Here is an example where I created ROIs with 1 pixel each and created the correlation matrix with centroid_vs_centroid option:

SPCM_vs_CorrMat.pdf

As you can see, the correlation values are the same in both the SPCMap (viewed using the DataViewer app) and the correlation matrix (viewed with the Plot Correlation Matrix app).


Are you sure that this is not just a matter of color scale on your images?

If you think that this is not the case, please share the SPCMap.dat/.mat files as well as the CorrMat.mat file, so I can take a look.

Thanks