natverse / nat.flybrains

Support for Drosophila bridging/mirroring registrations in R
https://natverse.github.io/nat.flybrains
GNU General Public License v3.0
2 stars 3 forks source link

function to calculate overlap with labelfield #16

Open jefferis opened 10 years ago

jefferis commented 10 years ago

Would like either a function or simple examples showing how to calculate overlap with a label field.

Should we be including the VFB label field in e.g. JFRC2, FCWB, T1 and IS2 space?

jefferis commented 10 years ago

Incidentally we could translate overlap from the space of the data collection to JFRC2 space by the use of Jacobian determinants for the bridging registration.

jefferis commented 10 years ago

Probably belongs in nat.templatebrains or even in nat at this point

jefferis commented 10 years ago

At its simplest, this would take a thresholded image and a label field and return a data.frame with counts of each label and its overlap.

jefferis commented 10 years ago

OK I think this should be implemented as nat::cmtk.statistics (translating nat.as::CMTKStatistics) + a function in nat.templatebrains that coordinates thesholding etc.

jefferis commented 8 years ago

So the status of this is that nat now has a nat::cmtk.statistics function as of https://github.com/jefferis/nat/commit/8d2d7c6df0a5affa28b0c343328c5ba5854504ed but the other part of the solution (coordinating the thresholding) is not yet defined or implemented.