natverse/nat.flybrains

function to calculate overlap with labelfield

jefferis opened this issue · 5 comments

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?

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.

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

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.

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

So the status of this is that nat now has a nat::cmtk.statistics function as of natverse/nat@8d2d7c6 but the other part of the solution (coordinating the thresholding) is not yet defined or implemented.