PreibischLab / BigStitcher

ImgLib2/BDV implementation of Stitching for large datasets
GNU General Public License v2.0
64 stars 14 forks source link

Interactive bounding box in BDV error after tranformation #114

Open artgolden opened 2 years ago

artgolden commented 2 years ago

I encounter a following error when trying to define new bounding box interactively in BDV:

Exception in thread "Thread-110" java.lang.IllegalArgumentException: invalid range properties
    at javax.swing.DefaultBoundedRangeModel.<init>(DefaultBoundedRangeModel.java:102)
    at javax.swing.JSlider.<init>(JSlider.java:274)
    at bdv.tools.brightness.SliderPanel.<init>(SliderPanel.java:72)
    at bdv.tools.boundingbox.BoxSelectionPanel.<init>(BoxSelectionPanel.java:107)
    at bdv.tools.boundingbox.BoundingBoxDialog.<init>(BoundingBoxDialog.java:161)
    at bdv.tools.boundingbox.BoundingBoxDialog.<init>(BoundingBoxDialog.java:99)
    at net.preibisch.mvrecon.process.boundingbox.BoundingBoxBigDataViewer$1.<init>(BoundingBoxBigDataViewer.java:123)
    at net.preibisch.mvrecon.process.boundingbox.BoundingBoxBigDataViewer.estimate(BoundingBoxBigDataViewer.java:122)
    at net.preibisch.mvrecon.fiji.plugin.boundingbox.BDVBoundingBoxGUI.setUpDefaultValues(BDVBoundingBoxGUI.java:52)
    at net.preibisch.mvrecon.fiji.plugin.boundingbox.BoundingBoxGUI.getSimpleDialog(BoundingBoxGUI.java:164)
    at net.preibisch.mvrecon.fiji.plugin.boundingbox.BoundingBoxGUI.queryParameters(BoundingBoxGUI.java:96)
    at net.preibisch.mvrecon.fiji.plugin.Define_Bounding_Box.defineBoundingBox(Define_Bounding_Box.java:137)
    at net.preibisch.mvrecon.fiji.plugin.Define_Bounding_Box.defineBoundingBox(Define_Bounding_Box.java:84)
    at net.preibisch.mvrecon.fiji.spimdata.explorer.popup.BoundingBoxPopup$MyActionListener$1.run(BoundingBoxPopup.java:89)
    at java.lang.Thread.run(Thread.java:748)

This happens if I had previously defined a bounding box, and then applied a significant transformation, for example rotation of 45 degrees. It looks like it is trying to create an initial guess for a bounding box on the same place as in previous definition, but fails since the image is transformed.

An example dataset that is currently in the state where you get this error when trying to create a bounding box interactively in BDV can be found here: https://drive.google.com/drive/folders/1KtUJHlPQucHVk35mBumR6Bsn1PpPzNRh?usp=sharing

I am running updated Fiji 2.3.0/1.53q on Ubuntu 20.04