Login  Register

unexpected results with "Convert Stack to RGB"

Posted by seb-7 on Jul 19, 2006; 4:17pm
URL: http://imagej.273.s1.nabble.com/unexpected-results-with-Convert-Stack-to-RGB-tp3702096.html

Hello ImageJers,

I got something pretty weird using "Convert Stack To RGB" with last
(1.37k) version of ij:
Instead of the usual RGB merged slices, I got 2 windows: one of "RGB"
type containig one (gray) image coming from one slice of the previous
stack and an "empty" blank stack (with a slider but nothing displayed).
Moreover when I select a slice in the last one, it is displayed in the
result "RGB" stack.
I checked this with the same version of ij, both on linux and OSX
(Tiger) (java 1.5.0x).

I fear this is not crystal clear...

Here is a macro showing what I did:

newImage("test", "8-bit Black", 512, 512, 3);
setColor(200);
for(i=1;i<=3;i++)
{
        setSlice(i);
        fillRect(i*50,i*50,100,100);
}
run("Convert Stack to RGB");


Can you see what I mean?

I'm trying to look at the source now.

Thanks
seb