xml panorama project format

Bruno Postle bruno@postle.net
Sun, 21 Apr 2002 19:59:34 +0100


--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I've written a script to parse ptgui project files and write them out as
slightly more readable xml project files.  It's a bit of a kludge, but
it seems to do the job.

There's a tarball here, with some examples:

  http://bugbear.blackfish.org.uk/~bruno/ptx/2002-04-21/xpt-script-2002-04-21.tar.gz

The idea is that it should be possible to write wrappers that can take
this xml (or something like it) and output ptstitcher and ptoptimizer
files.  This script will help generate some real-world input for these
wrappers.

I'm going to attach a short xml output to this message.  Obviously, all
comments and criticisms are welcome.

-- 
Bruno

--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline; filename="000.xpt"

<xml>

  <input>

    <point>
      <type>H+V</type>
      <error>0.452937</error>
      <image>
        <ref>0</ref>
        <x>883</x>
        <y>720</y>
      </image>
      <image>
        <ref>1</ref>
        <x>363</x>
        <y>704</y>
      </image>
    </point>

    <point>
      <type>H+V</type>
      <error>0.199417</error>
      <image>
        <ref>0</ref>
        <x>1186</x>
        <y>585</y>
      </image>
      <image>
        <ref>1</ref>
        <x>657</x>
        <y>579</y>
      </image>
    </point>

    <point>
      <type>H+V</type>
      <error>0.769709</error>
      <image>
        <ref>0</ref>
        <x>902</x>
        <y>322</y>
      </image>
      <image>
        <ref>1</ref>
        <x>403</x>
        <y>307</y>
      </image>
    </point>

    <point>
      <type>H+V</type>
      <error>0.511984</error>
      <image>
        <ref>0</ref>
        <x>1159</x>
        <y>82</y>
      </image>
      <image>
        <ref>1</ref>
        <x>663</x>
        <y>104</y>
      </image>
    </point>

    <point>
      <type>V</type>
      <error>0.235464</error>
      <image>
        <ref>0</ref>
        <x>408</x>
        <y>184</y>
      </image>
      <image>
        <ref>1</ref>
        <x>1109</x>
        <y>120</y>
      </image>
    </point>

    <point>
      <type>V</type>
      <error>0.286748</error>
      <image>
        <ref>0</ref>
        <x>420</x>
        <y>307</y>
      </image>
      <image>
        <ref>1</ref>
        <x>1141</x>
        <y>257</y>
      </image>
    </point>

    <point>
      <type>V</type>
      <error>0.318045</error>
      <image>
        <ref>0</ref>
        <x>534</x>
        <y>645</y>
      </image>
      <image>
        <ref>1</ref>
        <x>964</x>
        <y>625</y>
      </image>
    </point>

    <point>
      <type>H</type>
      <error>0.281842</error>
      <image>
        <ref>0</ref>
        <x>532</x>
        <y>309</y>
      </image>
      <image>
        <ref>0</ref>
        <x>514</x>
        <y>625</y>
      </image>
    </point>

    <point>
      <type>H</type>
      <error>0.0340999</error>
      <image>
        <ref>0</ref>
        <x>901</x>
        <y>270</y>
      </image>
      <image>
        <ref>0</ref>
        <x>908</x>
        <y>623</y>
      </image>
    </point>

    <point>
      <type>H</type>
      <error>0.268463</error>
      <image>
        <ref>1</ref>
        <x>979</x>
        <y>621</y>
      </image>
      <image>
        <ref>1</ref>
        <x>955</x>
        <y>261</y>
      </image>
    </point>

    <point>
      <type>H</type>
      <error>0.445104</error>
      <image>
        <ref>1</ref>
        <x>514</x>
        <y>616</y>
      </image>
      <image>
        <ref>1</ref>
        <x>519</x>
        <y>265</y>
      </image>
    </point>

    <image>
      <type>Rectilinear</type>
      <path>H:\ptgui\london\2001-05-29_027.jpg</path>
      <width>1280</width>
      <height>960</height>
      <roll>
        <ref></ref>
        <optimize>true</optimize>
        <value>-1.93985</value>
      </roll>
      <pitch>
        <ref></ref>
        <optimize>true</optimize>
        <value>14.507</value>
      </pitch>
      <yaw>
        <ref></ref>
        <optimize>true</optimize>
        <value>-19.6967</value>
      </yaw>
      <fov>
        <ref></ref>
        <optimize></optimize>
        <value>52.624</value>
      </fov>
      <a>
        <ref></ref>
        <optimize></optimize>
        <value>0.009594</value>
      </a>
      <b>
        <ref></ref>
        <optimize></optimize>
        <value>-0.023808</value>
      </b>
      <c>
        <ref></ref>
        <optimize></optimize>
        <value>-0.010317</value>
      </c>
      <d>
        <ref></ref>
        <optimize>true</optimize>
        <value>0</value>
      </d>
      <e>
        <ref></ref>
        <optimize>true</optimize>
        <value>0</value>
      </e>
    </image>

    <image>
      <type>Rectilinear</type>
      <path>H:\ptgui\london\2001-05-29_028.jpg</path>
      <width>1280</width>
      <height>960</height>
      <roll>
        <ref></ref>
        <optimize>true</optimize>
        <value>0.362747</value>
      </roll>
      <pitch>
        <ref></ref>
        <optimize>true</optimize>
        <value>12.9907</value>
      </pitch>
      <yaw>
        <ref></ref>
        <optimize>true</optimize>
        <value>2.82256</value>
      </yaw>
      <fov>
        <ref>0</ref>
        <optimize></optimize>
        <value></value>
      </fov>
      <a>
        <ref>0</ref>
        <optimize></optimize>
        <value></value>
      </a>
      <b>
        <ref>0</ref>
        <optimize></optimize>
        <value></value>
      </b>
      <c>
        <ref>0</ref>
        <optimize></optimize>
        <value></value>
      </c>
      <d>
        <ref></ref>
        <optimize>true</optimize>
        <value>-5.579827</value>
      </d>
      <e>
        <ref></ref>
        <optimize>true</optimize>
        <value>13.065455</value>
      </e>
    </image>

  </input>

  <output>

    <image>
      <type>Rectilinear</type>
      <width>2400</width>
      <height>1400</height>
      <feather>20</feather>
      <format>PNG</format>
      <gamma>1</gamma>
      <interpolator>Poly16</interpolator>
      <quality>90</quality>
      <fov>
        <value>100</value>
      </fov>
    </image>

  </output>

</xml>

--RnlQjJ0d97Da+TV1--