Combine two complementary parts of images - Spherical pictures

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
max72
Posts: 3
Joined: 2019-10-04T03:37:32-07:00
Authentication code: 1152

Combine two complementary parts of images - Spherical pictures

Post by max72 »

I would like to ask for a suggestion about the command that could be used to combine two 360 images in one.
Being impossible to hide I would take two pictures from the same point, in each one I would occupy a different half.
The two images are vertically split in two halves, one with me on the left part and one with me on the right.
Then I would like to be able to take the good left and right parts of the two pictures and combine them in one, with no more me hanging around.
Could you suggest a possible workflow?
Thanks in advance,
Massimo
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Combine two complementary parts of images - Spherical pictures

Post by snibgo »

What version of IM, on what platform?

Please show sample input images.

If the only change is the position of you, the photographer, then the task is simple: the output will be one of the photos, composited with part of the other photo. The boundary between the two might be a straight line, or with a transition area, or whatever.

If the camera is hand-held then you first need to align the photos. For 360-degree photos, this won't be simple.
snibgo's IM pages: im.snibgo.com
max72
Posts: 3
Joined: 2019-10-04T03:37:32-07:00
Authentication code: 1152

Re: Combine two complementary parts of images - Spherical pictures

Post by max72 »

Thanks,
I use a tripod, so alignment should not be a problem.
A 360 photo can be seen here:
Image
I’ll try to upload some sample pictures later.
Thanks,
Massimo
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Combine two complementary parts of images - Spherical pictures

Post by snibgo »

What version of IM, on what platform? I will assume v7 on Windows BAT. I suggest:

Code: Select all

magick inA.png ( inB.png -crop 50x100%%+0+0 +repage ) -compose Over -composite out.png
snibgo's IM pages: im.snibgo.com
max72
Posts: 3
Joined: 2019-10-04T03:37:32-07:00
Authentication code: 1152

Re: Combine two complementary parts of images - Spherical pictures

Post by max72 »

Sorry for the partial informations.
It's 7 on windows, and it worked perfectly.
Now I only have to create a small script in order to process multiple sets at once, but it won't be a problem.
Many thanks again.
Massimo
Post Reply