We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c5db7c commit 48bd3e9Copy full SHA for 48bd3e9
1 file changed
imc/ops/quant.py
@@ -79,7 +79,7 @@ def quantify_cell_intensity(
79
res = np.zeros((n_cells, n_channels), dtype=int if red_func == "sum" else float)
80
for channel in np.arange(stack.shape[0])[channel_include & ~channel_exclude]:
81
res[:, channel] = [
82
- getattr(x.intensity_image, red_func)()
+ getattr(x.intensity_image[x.image], red_func)()
83
for x in skimage.measure.regionprops(mask, stack[channel])
84
]
85
return pd.DataFrame(res, index=cells[1:]).rename_axis(index="obj_id")
0 commit comments