Login  Register

API question, all pixel values on slice lost, when transformed to stack

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

API question, all pixel values on slice lost, when transformed to stack

JamesGla
1 post
Hey,

I'm encountering a strange problem. I have an imageplus with nine slices, all of them are fine, when I display them.
But when I extract the stack and then use this stack to fill a new imageplus instance, the last slice is always completely black (zero).

All the images are 16bit, just in case this matters.

Below the java code:

imp.show(): // everything is fine !
ImageStack stack = imp.getStack();
(new ImagePlus("Stack Image",stack)).show() ; // last slice missing!

Anyone ever encountered the same problem or can give hint where the problem might come from?

cheers
James