Bioformats: Fastest way to get RGB of an extra large image
Posted: Wed Nov 26, 2014 12:06 pm
Hello,
I'm using Bioformats and ImageJ to process extra large images (~75000 x 75000 px) such as .vsi extension. I currently use imp = BF.openImagePlus(options)[0]; with crop options. Then I use the method convertToRGB of the ImageConverter class to convert the ImagePlus and getRGB method of the ColorProcessor class to retrieve the RGB values.
My problem is that the conversion process seems very time consuming, whereas I don't really need this ImagePlus but only the RGB arrays.
I wondered what would be the fastest (minimal) way to scan any type of image format, tile by tile, and for each tile retrieving only the RGB arrays?
Best regards
Gilles
I'm using Bioformats and ImageJ to process extra large images (~75000 x 75000 px) such as .vsi extension. I currently use imp = BF.openImagePlus(options)[0]; with crop options. Then I use the method convertToRGB of the ImageConverter class to convert the ImagePlus and getRGB method of the ColorProcessor class to retrieve the RGB values.
My problem is that the conversion process seems very time consuming, whereas I don't really need this ImagePlus but only the RGB arrays.
I wondered what would be the fastest (minimal) way to scan any type of image format, tile by tile, and for each tile retrieving only the RGB arrays?
Best regards
Gilles