Page 1 of 1

Loading a .lsm file in a c++ program

PostPosted: Mon Jan 13, 2014 2:20 pm
by Loic
Good morning,

I'm trying to load an LSM file in a c++ program. I followed the steps describes in the documentation at
http://www.openmicroscopy.org/site/support/bio-formats4/developers/BF-CPP-windows.html
and have been able to obtain c++ classes corresponding to the java classes in scifio. I thought I would find a class to deal with .lsm files but I found nothing, at least with LSM in its name.
Is it possible to use another one of the reader classes in scifio to load .lsm files?

There is a ZeissLSMReader java class in the bio-formats folder. I tried to build a cppwrap of those classes with the same maven command used in scifio (mvn -DskipTests package dependency:copy-dependencies cppwrap:wrap) but without success (I know almost nothing about maven, I just tried by copying the cppwrap folder from scifio to bio-formats).

Is there a maven command to build c++ classes from the java classes in bio-formats?

Thank you for any help.

Re: Loading a .lsm file in a c++ program

PostPosted: Mon Jan 13, 2014 4:46 pm
by rleigh
Dear Loic,

I'm afraid that the cppwrap C++ bindings are currently only generated for scifio readers and writers, and bioformats readers are not currently included. It should be possible to get maven to generate classes for all of the bioformats java classes in addition. I have opened a ticket for this: https://trac.openmicroscopy.org.uk/ome/ticket/11896 and you should be CC'd on any changes to the ticket.


Many thanks for reporting this,
Roger Leigh

Re: Loading a .lsm file in a c++ program

PostPosted: Tue Jan 14, 2014 9:47 am
by Loic
Dear Roger,

thank you for the fast answer. I'll see how it goes :)

Loïc.