We're Hiring!

BufferedImageReader - Ome.Tiff - Rendering issue

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.

BufferedImageReader - Ome.Tiff - Rendering issue

Postby Charavay » 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 :
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
Attachments
MyRendering.tiff
My rendering
MyRendering.tiff (6.43 KiB) Viewed 1438 times
ImageJ.tiff
The rendering with ImageJ
ImageJ.tiff (6.03 KiB) Viewed 1438 times
Charavay
 
Posts: 14
Joined: Fri Jun 19, 2015 1:49 pm

Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest

cron