pafextract walkthrough

  • Bruno Postle 7y

    Here is a problem image. I forgot to capture the nadir of the scene so there is a strange shaped empty space at the bottom of the equirectangular.

    In the past this sort of thing could be corrected in pteditor, but this closed-source tool no longer runs on many modern systems. This series of screenshots describes an equivalent workflow using panoglview, pafextract, nona, the gimp and ImageMagick.

    First open the panorama with panoglview:

    pafextract1.png

    Then pan around the scene until you have the area to be edited visible:

    pafextract2.png

    Save the 'project' as a .paf file, this needs to be in the same directory as the equirectangular due to a bug in panoglview:

    pafextract3.png

    run pafextract to create a high quality editable version of this viewpoint, this also creates a .pto project for later use:

    pafextract equirectangular.paf

    Open the resulting TIFF image in the gimp and use something like the resynthesizer to fix the hole:

    pafextract4.png

    When you are done, save the image:

    pafextract5.png

    Now the next trick is to re-project the image into the same equirectangular space as the original panorama, do this using nona and the .pto project created earlier:

    nona -o overlay equirectangular.paf.extract.pto

    This creates an image with the same dimensions as the full panorama:

    pafextract6.png

    Now all you have to do is merge the two together. You could just load them both into the gimp as separate layers or do it on the command-line with ImageMagick:

    composite overlay.tif equirectangular.tif merged.tif

    pafextract7.png

    That's it, pafextract is in the Panotools::Script 0.19 release.
781 views
1 fave
1 comment
Uploaded on September 10, 2008
This photo is in 1 album

Additional info

  • Viewing this photo Public
  • Safety level of this photo Safe
  • S Search
    Photo navigation
    < > Thumbnail navigation
    Z Zoom
    B Back to context