Skip to content

Commit 48bd3e9

Browse files
committed
bug-fix: quantification was done on object bounding-box instead of object mask
1 parent 1c5db7c commit 48bd3e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

imc/ops/quant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def quantify_cell_intensity(
7979
res = np.zeros((n_cells, n_channels), dtype=int if red_func == "sum" else float)
8080
for channel in np.arange(stack.shape[0])[channel_include & ~channel_exclude]:
8181
res[:, channel] = [
82-
getattr(x.intensity_image, red_func)()
82+
getattr(x.intensity_image[x.image], red_func)()
8383
for x in skimage.measure.regionprops(mask, stack[channel])
8484
]
8585
return pd.DataFrame(res, index=cells[1:]).rename_axis(index="obj_id")

0 commit comments

Comments
 (0)