We're Hiring!

NDPI to Tiff without opening

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.

NDPI to Tiff without opening

Postby Eric_Heder » Thu Jan 30, 2014 10:29 am

Hello together.

I'm trying to write a simple ImageJ plugin. This plugin should get a NDPI file as parameter and then should save the different magnification steps in different tiff files. I have read a lot about bioformats and I'm pretty sure this could be done. But I don't know how. Since the files are very large on the higher magnifications I don't want to open them. I tried the bioformats ImageJ plugin and I could read the file and then I get a nice little preview image to all magnifications. But then the bioformats plugin wants to open the files. But it does not work because the images have a size of about 10 GByte on the highest resolution. My problem is: how to program this with the help of the bioformats library.

1. Open dialog and select ndpi file - I have done that
2. Save different magnification steps in different tiff files without opening them - Not done

If someone could help me with step number 2 that would be nice. A small code snippet or something like that would be great too.

Regards,
Eric
Eric_Heder
 
Posts: 1
Joined: Sun Jan 26, 2014 12:42 pm

Re: NDPI to Tiff without opening

Postby mlinkert » Mon Feb 03, 2014 5:51 pm

Hi Eric,

2. Save different magnification steps in different tiff files without opening them - Not done

If someone could help me with step number 2 that would be nice. A small code snippet or something like that would be great too.


This class is probably the closest to what you want, with the caveat that it is a command line tool and not a plugin:

https://github.com/openmicroscopy/biofo ... erter.java

You may be able to call the 'testConvert' method directly; otherwise, you should be able to adapt that code (especially 'convertTilePlane') to convert large images without having them be displayed in ImageJ.

For more concise snippets, see also:

http://www.openmicroscopy.org/site/supp ... xport.html

and especially:

http://www.openmicroscopy.org/site/supp ... rge-images

Regards,
-Melissa
User avatar
mlinkert
Team Member
 
Posts: 353
Joined: Fri May 29, 2009 2:12 pm
Location: Southwest Wisconsin


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest