Login  Register

Need help with a macro for changing channels and colors in the "run("Arrange Channels...");" function.

Posted by MrScientistman2 on May 24, 2014; 9:35pm
URL: http://imagej.273.s1.nabble.com/Need-help-with-a-macro-for-changing-channels-and-colors-in-the-run-Arrange-Channels-function-tp5007906.html

Hi all,

Im trying to set up a macro that automatically assigns either of the RGB colors (according to my specific needs) to the various channels in a confocal-stack (with 3 channels). I can do this perfectly well manually with the Image->Color->Arrange Channels tool, but would like to program it to a macro. Ive tried to manipulate the "run("Arrange Channels...");" command but I dont know if it can do what im looking for.

What I want: Assign red to channel 1, green to channel 2, and blue to channel 3, and at a later point leave red at channel 1, move the blue channel to channel 2 and make it green, and move the green (old channel 2) to channel 3 and make it blue. Are there any options embedded in this function that would do such a thing? Or are there any other solutions?

I hope anyone can help me!