extraction.core.functions.cell.volume

volume(cell_mask)[source]

Estimate the volume of the cell.

Assumes the cell is an ellipsoid with the mask providing a cross-section through its median plane.

Parameters
cell_mask: 2d array

Segmentation mask for the cell.

:rtype: :py:class:`float`