bigdataviewer / bigdataviewer-playground

BSD 2-Clause "Simplified" License
19 stars 5 forks source link

2d empty source model: matrix is singular #245

Closed NicoKiaru closed 2 years ago

NicoKiaru commented 2 years ago

If one wants to make an empty source with no thickness, we get this error:

java.lang.RuntimeException: Matrix is singular.
    at net.imglib2.realtransform.AffineTransform3D.invert(AffineTransform3D.java:361)
    at net.imglib2.realtransform.AffineTransform3D.scale(AffineTransform3D.java:698)
    at sc.fiji.bdvpg.sourceandconverter.importer.EmptySourceAndConverterCreator.<init>(EmptySourceAndConverterCreator.java:128)
    at sc.fiji.bdvpg.sourceandconverter.importer.EmptySourceAndConverterCreator.<init>(EmptySourceAndConverterCreator.java:102)
NicoKiaru commented 2 years ago

Well, the empty source has to have a thickness.