Dear All,

hi

I would like to loop a micro, my micro below:

run("Grid/Collection stitching", "type=[Filename defined position] order=[Defined by filename ] grid_size_x=2 grid_size_y=2 tile_overlap=10 first_file_index_x=1 first_file_index_y=1 directory= H:\stiching20200207\dec20200207 file_names=h6_X{x}_Y{y}_C1.tif output_textfile_name=TileConfiguration.txt fusion_method=[Max. Intensity] regression_threshold=0.30 max/avg_displacement_threshold=2.50 absolute_displacement_threshold=3.50 compute_overlap computation_parameters=[Save memory (but be slower)] image_output=[Fuse and display]");

I am using for stitching images, I googled and find this link as help https://www.reddit.com/r/ImageJ/comments/7yhpvr/how_to_loop_a_macro_issue_iterating_through_all/ ,

but I do not know what to put for [i] in the:

action(input, output, list[i]);

that is my first problem. My second problem is how to name my file in a way that it can go to my other images. my general file name is

h6_X{x}_Y{y}_C1.tif

and the other tif files are

h7_X{x}_Y{y}_C1.tif

h8_X{x}_Y{y}_C1.tif

so i would like to have loop that can go for h6 then h7 and then h8 etc.

anyone can help me?

let me know please

Thank You in advance

kind regards

Somaieh

Similar questions and discussions