Write Bioformat images into JPG/PNG files
Posted: Wed Mar 31, 2010 7:09 am
Initially i had some issues writing some of the formats that used 16 bits per pixel (like ABD TIFF) into jpg files (i think jpg supports only 8 bits per pixel). Issue being the jpg files would just be empty. So i started writing 8 bits per pixel files into jpg and 16 bits per pixel into png. This method worked for most formats except a few.
In case of Zeiss LSM,
I use ImageIO.write to write the BufferedImage onto disk after i get the the BufferedImage from the openImage function. Has anyone come across these issues? Also, is there some more accurate way to decide which format (jpg, png or bmp) would be most suited to write a IFormatReader file into.
In case of Zeiss LSM,
- Code: Select all
formatReader.getBitsPerPixel()
- Code: Select all
bufferedImageObject.getColorModel().getPixelSize()
I use ImageIO.write to write the BufferedImage onto disk after i get the the BufferedImage from the openImage function. Has anyone come across these issues? Also, is there some more accurate way to decide which format (jpg, png or bmp) would be most suited to write a IFormatReader file into.