-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect cropping outside of the image #92
Comments
The code here should take care of it Assuming the coordinates get passed in pixels instead of microns? |
I don't think the scale is an issue here. I'll have to investigate why it doesn't get clipped appropriately. |
I remember testing this in napari. |
Hmm actually this might be a bug in #91. Let me know if you can work out the cause, because I thought I was correctly scaling it by napari_lattice/plugin/napari_lattice/fields.py Lines 492 to 493 in 8146b9a
|
Closing as I haven't been able to reproduce this recently. |
Currently if your ROI expands outside of the image, as seen here:
Then the processing fails with:
Traceback:
This should be detected using a new validator on the
LatticeData
model.The text was updated successfully, but these errors were encountered: