Merge Macro Question

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

Merge Macro Question

David
Hello,

I am trying to write a macro that merges two channels (recently split with the “Split Channels” command) and have a problem.  The images are .nd2 files and are being imported with default settings and open as a two-channel composite image.  The images, after being split, are named “C1-001.nd2” and “C2-001.nd2” where “C1-” and “C2-” are added by the “Split Channels” command and the ‘number’.nd2 varies with the number of the image.  

My issue lies in the fact that I am unable to create a macro to Merge Channels using the “C1” and “C2” designation – I just can’t figure out how to make a wildcard so that any image named “C1 – ‘whatever’” is green and “C2-‘whatever’” is blue.  Could someone please point out how to properly use wildcards in ImageJ macros OR tell me how to solve this conundrum?

Thanks very much,

David