BufferedImageReader - Ome.Tiff - Rendering issue
Posted: Wed Jun 24, 2015 2:22 pm
Hi,
I develop a java application to render images : these images are from different formats.
Here you can find my code :
I have tested the rendering of an ome.tiff image with the multi-channel.ome.tif file downloaded from this site : http://www.openmicroscopy.org/site/supp ... /data.html
When I open this file with ImageJ, I see that the background is black (see the attached file ImageJ.tiff). But in my case, the rendering is grey (see the attached file MyRendering.tiff).
Does someone have an idea ?
Thank you in advance for your help
CĂ©line
I develop a java application to render images : these images are from different formats.
Here you can find my code :
- Code: Select all
BufferedImageReader bufferedImageReader = new BufferedImageReader(new ImageReader());
BufferedImage bufferedImage;
try {
bufferedImageReader.setId(imagePath);
// OpenImage(0) <=> open the image corresponding to the first channel, the first z and the first t
bufferedImage = bufferedImageReader.openImage(0);
} catch (FormatException ex) {
// Can not read the image
bufferedImage = null;
} catch (IOException ex) {
// Can not read the image
bufferedImage = null;
}
I have tested the rendering of an ome.tiff image with the multi-channel.ome.tif file downloaded from this site : http://www.openmicroscopy.org/site/supp ... /data.html
When I open this file with ImageJ, I see that the background is black (see the attached file ImageJ.tiff). But in my case, the rendering is grey (see the attached file MyRendering.tiff).
Does someone have an idea ?
Thank you in advance for your help
CĂ©line