I have files named field and wavelength and would like to import 5 image stacks with same field and wavelength using macro or python code. each Field has seperate stack for 4 different wavelength and each field+wavelength has 5 stacks corresponding to time sequence.
For example, x_f00y_w000z. x is the stack number ranging from 1-5, f00y is field ranging from 0-14 and w000z is wavelength ranging from 0-3. So when I use run(Image Sequence...) for a specific folder, I want it to import stacks 1-5 in order for f0000_w0000 do the analysis, then f0000_w0001... and then f0001_w0000.
I am using
run("Image Sequence...", "open=/dir/ file=f000_w0000 sort");
to import my stacks combined stack going from 1_f0000_w0000 to 5_f0000_w0000 and manually changing the filename for every field and wavelength. I was trying to write a for loop to enter the "file=" as it goes through the each wavelength for each field.
Please let me know if I need to give more information.