ClandininLab / brainsss2

refactor of the brainsss repo for 2-photon imaging analysis
MIT License
0 stars 0 forks source link

masking before clustering for supervoxels #22

Closed poldrack closed 2 years ago

poldrack commented 2 years ago

currently the supervoxel clustering process clusters across the entire image. it seems better to cluster only within in-mask regions. I propose setting everything outside mask to zero, and then numbering from 1-nclusters for the cluster numbers.

poldrack commented 2 years ago

an alternative would be to set all non-mask voxels to NaN - this seems better in principle but not sure if it would break things down the road.

poldrack commented 2 years ago

leave as is for now as looking at non-brain clusters can be useful for QC