For my study I'm processing a lot of images that result from several measurements but I'm struggling to organize them in a proper way.
I have three images that I was to merge into one image in a 2x2 raster. However, the first picture has to be centered in the top row and the second and third image have to be at location 3 and 4 in the bottom row. I have a decent knowledge of Matlab scripting and thought it would be a simple task but it has already taken me several hours and I'm no step further. The main culprit is the batch processing. All images in the three series have serialized file names from 001 to 054 (001_VisNir, 001_Vis, 001_Nir, 002_VisNir, ..., 054_Vis, 054_Nir). I can combine them individually, but can't let the script convert the whole list.
Original pictures:
1:
2:
3:
The results should be like:
Preferable I would like to have the upper figure at 200% so that it fills the whole row, but I didn't get that to work.
My current script is:
Code: Select all
cd <directory>
convert ( [001-054]_VisNir.png +append ) -gravity center ( [001-054]_Vis.png [001-054]_Nir.png +append ) -background none -append [001-054].png
I hope this is enough information for you guys and hope that you could help me a bit. A redirection to a clear guide/FAQ would also be sufficient!
This question is focused on a series of 54 measurements but I would like to apply it also in other sessions.