the first 25, reading your macro.
Even if it's very slow. Disable the batchMode to see what's happening.
I would integrate a counter, which could be the result of your 5x5 tile.
So everytime 25 images are open, do the stitch, write, close, go on..
> Dear Community,
>
> I am trying to stitch 25 images in a 5x5 tile. I have written these
> lines but the script is only processing the first 25 images in a folder
> where 100 images are saved. Any hint on how to solve this problem is
> highly appreciated!
>
> macro "Stitching in imageJ" {
> dir = getDirectory("Choose an input directory ");
> dir2 = getDirectory("Choose a destination directory ");
> list = getFileList(dir);
> setBatchMode(true);
> for (i=0; i<list.length; i++) {
> path = dir+list[i];
> showProgress(i, list.length);
> if (!File.isDirectory(path)) {
> open(path);
> //
> //....
> run("Grid/Collection stitching", "type=[Grid: row-by-row] order=[Right &
> Down ] grid_size_x=5 grid_size_y=5 tile_overlap=5
> first_file_index_i=1 directory=[C:\\Users\\Mauricio\\Desktop\\New
> folder\\] file_names={i}.jpg output_textfile_name=TileConfiguration.txt
> fusion_method=[Linear Blending] 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]");
> saveAs("TIFF", dir2+list[i]);
> //....
> //
> //wait(3000);
> //selectWindow("Summary");
> //save(pathsaveres);
> }
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
>
Rainer M. Engel
Pichelsdorferstr. 143