Skip to content

Commit

Permalink
update sc_seg_operator.py: save_seg in_image -> clip
Browse files Browse the repository at this point in the history
  • Loading branch information
dummyindex committed Nov 29, 2023
1 parent dfc3167 commit 84ca943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions livecellx/core/sc_seg_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def _get_contours_from_shape_layer(layer: Shapes):
res_contours.append(vertices)
return res_contours

def save_seg_callback(self, in_image=True):
def save_seg_callback(self, clip=True):
"""Save the segmentation to the single cell object."""
import napari
from PyQt5.QtWidgets import QMessageBox
Expand All @@ -269,7 +269,7 @@ def save_seg_callback(self, in_image=True):
contour = contours[0] # n x 2

# limit the contour coordinates to the image height and width
if in_image:
if clip:
main_info("Limiting the contour coordinates to the image height and width.", indent_level=2)
main_debug("contour before clipping:" + str(contour.shape), indent_level=2)
image = self.sc.get_img()
Expand Down

0 comments on commit 84ca943

Please sign in to comment.