Skip to content

accelerate centroid calculation #289

@sophiamaedler

Description

@sophiamaedler

centroid calculation on large datasets takes a long time (longer than the segmentation).

  • numba_accelerated function: the memory requirements for computing the centroids with the numba accelerated functions increase dramatically if the cell_ids do not start at 1 and increase sequentially.
  • in previous tests the get_centroid function implemented by spatialdata was slower than the numba_accelerated function (but has the benefit of doing out of memory computation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions