cortex-lab / Suite2P

Tools for processing 2P recordings
Other
122 stars 66 forks source link

issue in dat.stat #129

Closed YGUO29 closed 6 years ago

YGUO29 commented 6 years ago

Hi! I just started using this toolbox and was trying to figure out the output structures... It seems the array in dat.stat.ipix is not the actual linear indecies of the ROIs... it's different from what I got with sub2ind(imagesize, xpix, ypix). Also the dat.stat.lambda and dat.stat.lam seem to be identical (both not normalized from 0 to 1)

Can you tell is there anything I might be doing wrong? Thanks!

carsen-stringer commented 6 years ago

Try sub2ind([numel(dat.ops.yrange), numel(dat.ops.xrange)], ypix, xpix). The pixels of the cell are defined in the subregion of the image that was cropped during registration.

Sorry lam and lambda are the same now in the pipeline.

YGUO29 commented 6 years ago

Got it. Thank you!

johannasigl commented 6 years ago

I am having a similar issue. I am trying to assign the output traces to the cells within the max projection, i.e. which cell belongs to which trace. But I dont know how to do that with the ypix,xpix because its defined by the subregion.... any hints? thanks :)

carsen-stringer commented 6 years ago

I'm closing this, please reopen it if there are still issues