extraction.core.functions.cell¶
Base functions to extract information from a single cell.
These functions are automatically read by extractor.py, and so can only have the cell_mask and trap_image as inputs. They must return only one value.
They assume that there are no NaNs in the image.
We use the module bottleneck when it performs faster than numpy:  Median  values containing NaNs (but we make sure this does not happen)
Functions

Find the area of a cell mask. 

Estimate the volume of the cell. 

Find the eccentricity using the approximate major and minor axes. 

Find the mean of the brightest 2.5% of pixels in the cell. 

Find the mean of the five brightest pixels in the cell. 

Find the mean of the pixels in the cell. 

Find the median of the pixels in the cell. 

Find the lengths of the minor and major axes of an ellipse from a cell mask. 

Estimate the volume of the cell. 

Find the standard deviation of the values of the pixels in the cell. 

Estimate the volume of the cell. 