We're Hiring!

openCV with bioformats

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.

openCV with bioformats

Postby PHCerdan » Wed Jul 31, 2013 12:25 am

Hello,
I haven't found any documentation about it, and I am quite new to bioformats and also to openCV. But I'd guess that it is possible and maybe you can help me here. I would like to avoid Matlab.
Can I use bioformats (with the proper c++ bindings libraries) to read images into openCV compatible format?
I have seen that ITK is a supported option, maybe I can use the itk-opencv bridge? Do you know if there is a direct way from bioformat to opencv?
Thanks in advance.
PHCerdan
 
Posts: 2
Joined: Wed Jul 31, 2013 12:03 am

Re: openCV with bioformats

Postby rleigh » Wed Jul 31, 2013 8:56 am

Hi,

I'm unaware of any "direct" way to use bioformats with opencv.

If you are using C++, then one possibility would be to build the Jace C++ wrappers (https://www.openmicroscopy.org/site/support/bio-formats4/developers/non-java-code.html). The bioformats itk bridge plus the itk opencv bridge might work, but I'm unaware of anyone trying this out, so can't make any particular recommendations here.

It looks like OpenCV can read standard TIFF files, so you could use bioformats to write out OME-TIFF and then read this with OpenCV. But that would be external to any C++ code unless you did it using the Jace wrappers (which can be done, but the bfconvert tool could do it directly).

Regards,
Roger
User avatar
rleigh
 
Posts: 217
Joined: Tue Mar 13, 2012 11:45 am

Re: openCV with bioformats

Postby PHCerdan » Thu Aug 01, 2013 5:17 am

That's a nice recommendation, I didn't realized that OpenCV could read OME-TIFF. I'll do that. Thanks for it.
Best regards,
PHC
PHCerdan
 
Posts: 2
Joined: Wed Jul 31, 2013 12:03 am


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest