Read CZI in MATLAB
Posted: Mon Aug 17, 2015 12:47 pm
Hi there
I am having trouble reading Zeiss .CZI files in MATLAB R2014b, using bfopen().
The same bioformats_package.jar (tested builds (a)11 May 2015 and (b) 17 July 2015) is able to read the same file in ImageJ (1.45s). Bio-formats MATLAB Toolbox is version 5.1.3, downloaded today moments ago. The same MATLAB Toolbox can read the file and pixel sizes when it has been exported as a TIFF stack from ImageJ. The error message in MATLAB is the same regardless of bioformats_package.jar and occurs in bfGetReader:
Error using bfGetReader (line 85)
Java exception occurred:
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:454)
at java.lang.Integer.parseInt(Integer.java:527)
at loci.formats.in.ZeissCZIReader.translateExperiment(ZeissCZIReader.java:1889)
at loci.formats.in.ZeissCZIReader.translateMetadata(ZeissCZIReader.java:980)
at loci.formats.in.ZeissCZIReader.initFile(ZeissCZIReader.java:553)
at loci.formats.FormatReader.setId(FormatReader.java:1244)
at loci.formats.ImageReader.setId(ImageReader.java:727)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:529)
at loci.formats.ChannelFiller.setId(ChannelFiller.java:263)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:529)
at loci.formats.ChannelSeparator.setId(ChannelSeparator.java:274)
Error in bfopen (line 114)
r = bfGetReader(id, stitchFiles);
Any help would be greatly appreciated.
Best wishes,
Cherrie
I am having trouble reading Zeiss .CZI files in MATLAB R2014b, using bfopen().
The same bioformats_package.jar (tested builds (a)11 May 2015 and (b) 17 July 2015) is able to read the same file in ImageJ (1.45s). Bio-formats MATLAB Toolbox is version 5.1.3, downloaded today moments ago. The same MATLAB Toolbox can read the file and pixel sizes when it has been exported as a TIFF stack from ImageJ. The error message in MATLAB is the same regardless of bioformats_package.jar and occurs in bfGetReader:
Error using bfGetReader (line 85)
Java exception occurred:
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:454)
at java.lang.Integer.parseInt(Integer.java:527)
at loci.formats.in.ZeissCZIReader.translateExperiment(ZeissCZIReader.java:1889)
at loci.formats.in.ZeissCZIReader.translateMetadata(ZeissCZIReader.java:980)
at loci.formats.in.ZeissCZIReader.initFile(ZeissCZIReader.java:553)
at loci.formats.FormatReader.setId(FormatReader.java:1244)
at loci.formats.ImageReader.setId(ImageReader.java:727)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:529)
at loci.formats.ChannelFiller.setId(ChannelFiller.java:263)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:529)
at loci.formats.ChannelSeparator.setId(ChannelSeparator.java:274)
Error in bfopen (line 114)
r = bfGetReader(id, stitchFiles);
Any help would be greatly appreciated.
Best wishes,
Cherrie