API question, all pixel values on slice lost, when transformed to stack
Posted by JamesGla on
URL: http://imagej.273.s1.nabble.com/API-question-all-pixel-values-on-slice-lost-when-transformed-to-stack-tp5003733.html
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