We're Hiring!

Loading a .lsm file in a c++ program

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.

Loading a .lsm file in a c++ program

Postby Loic » Mon Jan 13, 2014 2:20 pm

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.
Loic
 
Posts: 5
Joined: Mon Dec 02, 2013 11:42 am

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

Postby rleigh » Mon Jan 13, 2014 4:46 pm

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
User avatar
rleigh
 
Posts: 217
Joined: Tue Mar 13, 2012 11:45 am

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

Postby Loic » Tue Jan 14, 2014 9:47 am

Dear Roger,

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

Loïc.
Loic
 
Posts: 5
Joined: Mon Dec 02, 2013 11:42 am


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest