I’d like to write a Macro script for making montages of images. I have 2 questions.
I’ll either have 2 or 3 czi image files opened. I’d like to combine these images horizontally and save it as 1 big montage file. I have individual script but I don’t know how to make it cohesive and dynamic, so that it could accommodate for different number of opened image files.
Also after I have a montage, I’d like to change all the channels into grey scale. This is to see their brightness. Then I’d like to have a script separately that could assign green to channel 1, blue to channel 2 (DAPI), red to channel 3.
image_name = getTitle; selectWindow(image_name); close(); rename("SF"); // 1st file image_name = getTitle; // don't know how to pick the 2nd file, instead of "SF" selectWindow(image_name); close(); rename("CR"); // 2nd file run("Combine...", "stack1=SF stack2=CR"); // 1st combine image_name = getTitle; // don't know how to pick the 3rd file, instead of "Combined Stacks" selectWindow(image_name); close(Combined Stacks); rename("KD"); // 3rd file run("Combine...", "stack1=[Combined Stacks] stack2=KD"); // 2nd combine run("Grays"); // each images have 3 channels, I want to see all of them in grayscale first, then assign colors to each channel accordingly
Thank you for your time.