Merge channel problem in 1.46m

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Merge channel problem in 1.46m

Dr Adam Cliffe
Hi,

I'm having trouble with merging channels in a macro at the moment. If I run
this macro

newImage("Red", "8-bit Ramp", 100, 100, 1);

newImage("Grey", "8-bit Ramp", 100, 100, 1);

run("Rotate 90 Degrees Right");

run("Merge Channels...", "c1=Red c4=Grey keep");


it should give a merged red/grey image, instead it assigns the two images
as the red and green channel.

If I do the merge by hand, using only the Red and Grey channels, it gives
the correct outcome but creates both an RGB and composite image even though
the composite option is not selected.


Anyone else having this problem?

thanks


Adam
Reply | Threaded
Open this post in threaded view
|

Re: Merge channel problem in 1.46m

Rasband, Wayne (NIH/NIMH) [E]
On May 1, 2012, at 7:51 AM, Adam Cliffe wrote:

> Hi,
>
> I'm having trouble with merging channels in a macro at the moment. If I run
> this macro
>
> newImage("Red", "8-bit Ramp", 100, 100, 1);
>
> newImage("Grey", "8-bit Ramp", 100, 100, 1);
>
> run("Rotate 90 Degrees Right");
>
> run("Merge Channels...", "c1=Red c4=Grey keep");
>
>
> it should give a merged red/grey image, instead it assigns the two images
> as the red and green channel.
>
> If I do the merge by hand, using only the Red and Grey channels, it gives
> the correct outcome but creates both an RGB and composite image even though
> the composite option is not selected.

This bug is fixed in the ImageJ 1.46n daily build.

-wayne