delta.utils.roi_features#

delta.utils.roi_features(labels, poles, fluo_frames)[source]#

Extract single-cell morphological and fluorescence features.

Parameters
labelsLabels

Labels image of numbered cell regions.

polesdict[int, tuple[Pole, Pole]],

Dict of cellid to poles.

fluo_framesImage

Array of fluo frames to extract fluorescence from. Dimensions are (size_x, size_y, fluo_channels). The number of fluo_channels must match the number of fluo features to extract.

Returns
cell_featuresdict[int, CellFeatures]

Dictionary that associates cellids and CellFeatures.