Closed sakethkar closed 2 weeks ago
we are not going to support this in cellpose, but scipy.ndimage has nice functions for this, e.g.: https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.mean.html#scipy.ndimage.mean
you can use the mean
to compute the staining intensity per cell, e.g. with a given img
with your stain, you can use the cellpose masks as follows
from scipy.ndimage import mean
intensities = mean(img, masks)
Hello! I am working with some NanoString datasets outside their AtoMx SIP. I have used Cellpose GUI to run some segmentations which I like, but I am unable to extract any information from the resulting masks, viz. pixel co-ordinates of the cells, transcript locations etc.
I would also like to extract information (such as staining intensities) from the original image using Cellpose generated masks. Any help is appreciated. Thanks!