I am trying to run concatenation of two images through a macro. The final aim is to use in a batch mode.
Here is the code:
dir1 = getDirectory("Choose Source Directory ");
list = getFileList(dir1);
i=0;
filename1 = dir1 + list[i];
filename2 = dir1 + list[i+1];
open(filename1);
open(filename2);
imag1 = list[i]; imag2 = list[i+1];
run("Concatenate...", " title=[Concatenated Stacks] image1=imag1 image2=imag2");
When executed, the error is like this:
What is the right choice for executing this macro?
