Issue was raised on forum thread https://forum.image.sc/t/how-to-split-and-recombine-multiple-series-with-bfconvert/73662/2
In the thread the user had a multi resolution file (SCN format) with additional macro and label images and wanted only the image pyramid as an OME-TIFF. One of the attempts to achieve this was to use the noflat option with bfconvert and split the output into separate series using a pattern in the output as below:
bfconvert -noflat <original-file.scn> <output%%s.ome.tiff>
The conversion almost completed but threw an ArrayIndexOutOfBoundsException while closing the PyramidOMETiffWriter:
ImageCollection.scn
LeicaSCNReader initializing ImageCollection.scn
Reading IFDs
Populating metadata
Populating OME metadata
[Leica SCN] -> Series\Image_bigseries%s.ome.tiff [OME-TIFF]
Switching to BigTIFF (by file size)
Series 0: converted 1/1 planes (100%)
Series 0: converted 1/1 planes (100%)
Series 0: converted 1/1 planes (100%)
Tile size = 512 x 512
Series 1: converted 1/1 planes (100%)
Tile size = 512 x 512
Series 1: converted 1/1 planes (100%)
Tile size = 512 x 512
Series 1: converted 1/1 planes (100%)
Series 1: converted 1/1 planes (100%)
Series 1: converted 1/1 planes (100%)
Series 1: converted 1/1 planes (100%)
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 6 out of bounds for length 6
at loci.formats.out.PyramidOMETiffWriter.close(PyramidOMETiffWriter.java:128)
at loci.formats.ImageWriter.close(ImageWriter.java:469)
at loci.formats.tools.ImageConverter.testConvert(ImageConverter.java:777)
at loci.formats.tools.ImageConverter.main(ImageConverter.java:1179)
Issue was raised on forum thread https://forum.image.sc/t/how-to-split-and-recombine-multiple-series-with-bfconvert/73662/2
In the thread the user had a multi resolution file (SCN format) with additional macro and label images and wanted only the image pyramid as an OME-TIFF. One of the attempts to achieve this was to use the
noflatoption with bfconvert and split the output into separate series using a pattern in the output as below:bfconvert -noflat <original-file.scn> <output%%s.ome.tiff>The conversion almost completed but threw an
ArrayIndexOutOfBoundsExceptionwhile closing thePyramidOMETiffWriter: