PYME.Analysis.points.cluster_morphology module

PYME.Analysis.points.cluster_morphology.get_labels_from_image(label_image, points)

Function to extract labels from a segmented image (2D or 3D) at given locations.


label_image: PYME.IO.image.ImageStack instance

an image containing object labels

points: tabular-like (PYME.IO.tabular, np.recarray, pandas DataFrame) containing ‘x’, ‘y’ & ‘z’ columns

locations at which to extract labels


ids: Label number from image, mapped to each localization within that label

numPerObject: Number of localizations within the label that a given localization belongs to

PYME.Analysis.points.cluster_morphology.measure_3d(x, y, z, output=None)