logo       

Re: 16-bit grayscale from URL?: msg#00136

java.imagej

Subject: Re: 16-bit grayscale from URL?

ImageJ can open 16-bit TIFFs using a URL. For example, the File>Import>URL command will open the 16-bit TIFF at "http:// rsb.info.nih.gov/ij/images/m51.tif". PNG files open as RGB or 8-bit grayscale.

-wayne

On Nov 16, 2005, at 7:42 PM, John Carlson wrote:

I am using new ImagePlus(url).show(). Will this
display a 16-bit greyscale file with 16-bit values
in ImageJ, or will it convert to 8-bit? I plan to use
the PNG file format. We are using ImageMagick
to convert to PNG, so if ImageMagick converts to
8-bit grayscale, let me know that as well.

I don't really want to go through the trouble of reading
the PNG into a short array--I'd rather that ImageJ just
do the right thing when it parses the PNG file. We
had problems with passing Java 16-bit grayscale
Image objects to ImageJ, so I'm wondering if there
is an issue here as well.

I am using version 1.28.

My users like to see the 16 bit values, hence we don't
want to convert to 8 bit. We are using a 12-bit camera
to capture the images. We used to use 8-bit cameras,
so we have mixed data now.

So far, I am seeing 8-bit, but I'm not sure what part of the
application has 16-bit. We are attempting to get
an image we know is 16-bit to try this experiment on.

Obviously, this is a little premature, but I thought I'd
ask.

John




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise