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:


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


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


    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:


    When you are done, save the image:


    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:


    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


    That's it, pafextract is in the Panotools::Script 0.19 release.
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