Jump to: navigation, search

Autopano Video - Masking the nadir with a blended patch



Introduction

In a previous tutorial , we explained how to patch the Nadir using a logo or an image that would completely mask the bottom of your stitch. But for some occasions, you might want to mask something (like a tripod) in a more subtle way. This will only work for static shots.



Test case

We shot a timelapse using the Omni rig mounted on a tripod. We have 6 videos shot with GoPro Hero 4 Black cameras and we want to make the tripod disappear. We imported a stitch using the Omni Importer and are satisfied with the quality we have right from the start. The only thing we need to make sure of is that we use the “sharp” blending mode in AVP because we are going to use masks later on, and they don’t work with the smooth blending preset.

Now, we can go and edit our reference panorama in APG.


Editing in Autopano Giga

First, adjust the color correction using “auto” so your patch will blend nicely into the panorama and won’t have any visible color difference.
Masking with a blended patch000.png

Then move the pano to put your tripod right in the middle
Masking with a blended patch001.png

Using the crop tool, select a square that encompasses your whole tripod (a square makes it easier to re-import it afterwards. And make sure it is perfectly centered). Write down the values you find in Theta and Phi (with a square, these should be identical). Here, it's -40 / 40, so we know for later that the field of view is gonna be 80. If your tripod is smaller, it might be -30 / 30, so a FOV of 60.
Masking with a blended patch002.png

Switch to planar view so the image you export has no distortion.
Masking with a blended patch025.png

Render the cropped zone and edit it in Photoshop to make the tripod disappear (select the tripod using the Lasso tool, go to edit/fill and choose content-aware fill). Save it as a jpeg file.


Back in APG import your patch back into the pano, using "add image".
Masking with a blended patch003.png

Your patch should be centered over the previous image. Expand the group and change the FOV of your patch so that it matches what you wrote down earlier (80 in our case).
Masking with a blended patch004.png

Get back to a spherical projection and to a full sphere in the crop menu.
Masking with a blended patch005.png

Now you can go to the masking tool and put markers on the patch image and the images from your cameras so that only the place where the tripod used to be is kept from the patch.
Masking with a blended patch006.png

You can now save and go back to AVP to get your horizon straight and finalize your work on the stitched video.





BACK TO: Documentation / Autopano Video Documentation