We're Hiring!

Can't load nd2 high content analysis file with MATLAB

Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats
Please note:
Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats

If you are having trouble with image files, there is information about reporting bugs in the Bio-Formats documentation. Please send us the data and let us know what version of Bio-Formats you are using. For issues with your code, please provide a link to a public repository, ideally GitHub.

Can't load nd2 high content analysis file with MATLAB

Postby tg875 » Mon Jan 29, 2018 8:17 pm

I have been using the bioformats package to load nd2 files through MATLAB for image processing. This has worked without any issues until I received some nd2s from a collaborator. These nd2s are taken in high content mode and each well of the imaging plate is a separate nd2 file.

I can initialize a reader using bfGetReader - loci.formats.ChannelSeparator@3e8f9a77
When I try and initialize this reader on the file I get the following error:

Java exception occurred:
java.lang.NoClassDefFoundError: loci/formats/codec/JPEG2000BoxType

at
loci.formats.in.JPEG2000Reader.isThisType(JPEG2000Reader.java:96)

at loci.formats.FormatReader.isThisType(FormatReader.java:615)

at loci.formats.ImageReader.getReader(ImageReader.java:185)

at loci.formats.ImageReader.setId(ImageReader.java:836)

at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:650)

at loci.formats.ChannelFiller.setId(ChannelFiller.java:223)

at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:650)

at
loci.formats.ChannelSeparator.setId(ChannelSeparator.java:291)

at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:650)

at loci.formats.Memoizer.setId(Memoizer.java:677)

tg875
 
Posts: 1
Joined: Sun Jan 28, 2018 10:33 pm

Re: Can't load nd2 high content analysis file with MATLAB

Postby dgault » Tue Jan 30, 2018 10:06 am

Hi,

This error is likely caused by a conflict between the JPEG2000 library which Bio-Formats uses and other installed libraries which also provide JPEG2000 decoding in MATLAB.

What all toolboxes do you currently have installed? You can view a list of the installed toolboxes using the 'ver' command:
http://www.mathworks.com/help/matlab/ref/ver.html

David Gault
User avatar
dgault
Team Member
 
Posts: 208
Joined: Fri Aug 14, 2015 2:56 pm


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest

cron