Composite images
Posted: 2009-12-14T16:26:34-07:00
I'm new to ImageMagick and have a little problem.
I have several images of the same size (e.g. 24 images of 1280x960).
Each image contains only a ribbon of 40 pixels with useful data. The first from y=0-40, the second from y=40-80 and so on.
All pixels not on this ribbon are black.
What I want to do: Combining the several images to one image, which contains all ribbons.
My first try:
=> I loop over all images and use the combine console application to combine two images at a time:
=> composite -compose add img1.png img2.png result.png
This process takes a lot of time (compositing the complete image instead of just the ribbon) and I think one can do combination much faster.
It would be very nice if someone can help me with this.
Thanks in advance!
Best,
enkei666
I have several images of the same size (e.g. 24 images of 1280x960).
Each image contains only a ribbon of 40 pixels with useful data. The first from y=0-40, the second from y=40-80 and so on.
All pixels not on this ribbon are black.
What I want to do: Combining the several images to one image, which contains all ribbons.
My first try:
=> I loop over all images and use the combine console application to combine two images at a time:
=> composite -compose add img1.png img2.png result.png
This process takes a lot of time (compositing the complete image instead of just the ribbon) and I think one can do combination much faster.
It would be very nice if someone can help me with this.
Thanks in advance!
Best,
enkei666