morphometrics / morphometrics-engine

A morphometrics measurement engine
Other
0 stars 1 forks source link

Expand API to surface and neighborhood measurements #4

Open kevinyamauchi opened 2 years ago

kevinyamauchi commented 2 years ago

This issue is to discuss expanding the measurement API to include surface measurements and neighborhood aggregation functions. Surface measurements are performed on either vertices or faces of a mesh. Neighborhood aggregation functions take any measurement table and aggregate the measurements using neighborhoods defined by an adjacency matrix (can be binary or weighted).

A few principles I would like to propose:

A few questions:

Related issues:

Next steps:

kevinyamauchi commented 2 years ago

What do you think, @haesleinhuepf and @jo-mueller?

haesleinhuepf commented 2 years ago

Can we depend on numba? @MaksHess and I noticed pretty significant speedups when using numba for the aggregation functions (~10x).

Could we instead define an interface for aggregations (with and without neighbors)? I'm asking because clesperanto also offers neighborhood aggregation functionality: https://clesperanto.github.io/pyclesperanto_prototype/docs/_build/html/search.html?q=Of+neighbors+&check_keywords=yes&area=default