Skip to content

Commit

Permalink
Correctly rescale the ROI
Browse files Browse the repository at this point in the history
  • Loading branch information
multimeric committed Oct 2, 2024
1 parent 6c6b5c2 commit 88e210c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/napari_lattice/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,11 @@ def _make_model(self) -> Optional[CropParams]:
from lls_core.models.crop import Roi

if self.fields_enabled.value:
deskew = self._get_deskew()
rois = []
for shape_layer in self.shapes.value:
for x in shape_layer.data:
rois.append(Roi.from_array(x))
rois.append(Roi.from_array(x / deskew.dy))

return CropParams(
# Convert from the input image space to the deskewed image space
Expand Down

0 comments on commit 88e210c

Please sign in to comment.