Skip to content

Commit b0dc51d

Browse files
committed
fix px size
1 parent 23f6b8d commit b0dc51d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ovrlpy/_segmentation_utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,13 @@ def cell_integrity_from_masks(
143143
for mask in segmentation_masks:
144144
prepare(mask)
145145

146+
px_size = ovrlp.gridsize
147+
146148
# get groups where within each group no pair of cells is too close to each other
147-
groups = _disjoint_groups(segmentation_masks, px_size=ovrlp.gridsize)
149+
groups = _disjoint_groups(segmentation_masks, px_size=px_size)
148150

149151
shape = ovrlp.integrity_map.shape
150-
transform = from_origin(ovrlp.origin[0], ovrlp.origin[1], 1, -1)
152+
transform = from_origin(ovrlp.origin[0], ovrlp.origin[1], px_size, -px_size)
151153

152154
# get pixels that belong to each cell
153155
cell_pixels = pl.concat(

0 commit comments

Comments
 (0)