Ticket #330 (closed defect: fixed)
Opened 2008-11-19T13:05:59-06:00
Last modified 2008-11-26T08:06:31-06:00
Cannot read OME-TIFF files saved from Image5D window
Reported by: | melissa | Owned by: | melissa |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | plugins | Severity: | serious |
Keywords: | Cc: | sgriesha@… | |
Blocked By: | Blocking: |
Description
To reproduce:
- "File>Open Samples>Fluorescent Cells" in ImageJ
- "Plugins>Image5D>Stack to Image5D" with default options
- Save as an OME-TIFF file using "Plugins>LOCI>Bio-Formats Exporter"
- Attempt to open the saved file using the Bio-Formats importer or command line tools; the following exception should occur:
Exception in thread "main" loci.formats.FormatException: Invalid image number: 1 (series=0, imageCount=1) at loci.formats.FormatTools.checkPlaneNumber(FormatTools.java:484) at loci.formats.in.MinimalTiffReader.openBytes(MinimalTiffReader.java:126) at loci.formats.in.OMETiffReader.openBytes(OMETiffReader.java:76) at loci.formats.FormatReader.openBytes(FormatReader.java:538) at loci.formats.FormatReader.openImage(FormatReader.java:521) at loci.formats.ImageReader.openImage(ImageReader.java:344) at loci.formats.tools.ImageInfo.testRead(ImageInfo.java:475) at loci.formats.tools.ImageInfo.main(ImageInfo.java:643)
Nominally fixed in r4652. The problem was that when exporting from an Image5D window, you can only export the Z slices from the first channel and timepoint (1 slice in this case). This was not reflected in the metadata that was written to the OME-TIFF file - so the resulting OME-TIFF file had only one plane, but the metadata indicated that there should be three planes.
As of r4652, the metadata is updated to reflect the number of planes actually written, so any files exported from an Image5D window will now be valid. However, it is still advised that you do not export from an Image5D window.