We're Hiring!

Mixing OMERO & bio-formats from Matlab.

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Mixing OMERO & bio-formats from Matlab.

Postby i.munro » Thu May 15, 2014 8:17 pm

Hi

I just managed to get Matlab code, which mixes OMERO & bio-formats, running deployed (i.e. compiled on the run-time engine rather than from source) on Win7.

On loading OMERO & bio-formats I get

Screen Shot 2014-05-15 at 21.08.56.png
Screen Shot 2014-05-15 at 21.08.56.png (35.17 KiB) Viewed 1680 times


Do I need to be concerned about this? I haven't found see any other symptoms yet.

I have yet to establish whether this also happens on OSX. It certainly doesn't running from source on OSX.

Regards

Ian
i.munro
 
Posts: 50
Joined: Thu Apr 25, 2013 1:01 pm

Re: Mixing OMERO & bio-formats from Matlab.

Postby sbesson » Fri May 16, 2014 9:29 am

Hi Ian,

yes the error makes sense as we provide slf4j-api as a standalone JAR in OMERO.matlab while it is bundled with bioformats_package.jar. So conflicting JARs are found at initialization. Assuming nothing goes wrong so far, this might not be a concern for you esp. since we use the same version of sl4j-api in both projects.

I think the proper way to avoid this conflict is to:
- either prevent loading the sl4f-api.jar shipped with OMERO.matlab
- or add indidivudal Bio-Formats JARs (formats-api.jar, formats-gpl.jar...) rather than the bioformats_package.jar bundle

A reasonable mid-term solution will certainly arise following Balaji's recent effort on importing images/plates from MATLAB. This means we may start bundling the Bio-Formats libraries as part of the libs/ directory of OMERO.matlab in the near future and we will likely solve this issue using one of the two options descriped above.

Sebastien
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm

Re: Mixing OMERO & bio-formats from Matlab.

Postby i.munro » Fri May 16, 2014 11:19 am

Thanks Sebastien

Ian
i.munro
 
Posts: 50
Joined: Thu Apr 25, 2013 1:01 pm


Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest