From de98dc7adba85f75e6007de0b6a2f099d4ee45be Mon Sep 17 00:00:00 2001 From: volker-baecker Date: Mon, 25 Nov 2024 14:51:52 +0100 Subject: [PATCH] set the translation of the segmentation layer --- src/segment_embryo/_widget.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/segment_embryo/_widget.py b/src/segment_embryo/_widget.py index 5ead63c..bceea74 100644 --- a/src/segment_embryo/_widget.py +++ b/src/segment_embryo/_widget.py @@ -93,6 +93,7 @@ def _new_segmentation(self, mask): name = "Labels of " + membranesLayerName self.viewer.add_labels(mask, name=name) self.viewer.layers[name].scale = self.viewer.layers[membranesLayerName].scale[-3: ] + self.viewer.layers[name].translate = self.viewer.layers[membranesLayerName].translate[-3: ] self.progressThread.stop()