It can happen that when opening a 3D dataset, bio-formats reads the metadata from a 2D file in the same folder (see also https://github.com/ome/bioformats/issues/2613). In that case, omeMeta.getPixelsPhysicalSizeZ(0) is null, so we should handle it more gently here:
It can happen that when opening a 3D dataset, bio-formats reads the metadata from a 2D file in the same folder (see also https://github.com/ome/bioformats/issues/2613). In that case,
omeMeta.getPixelsPhysicalSizeZ(0)
isnull
, so we should handle it more gently here:https://github.com/fmi-basel/faim-imagej-stitching/blob/36be9c86b8db2b0a175d685d162f5ab6de4d025e/src/main/java/ch/fmi/stitching/visiview/StitchVisiviewDatasetCommand.java#L408