xml panorama project format

Bruno Postle bruno@postle.net
Thu, 25 Apr 2002 18:02:40 +0100


--CUfgB8w4ZwR/yMy5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Mon 22-Apr-2002 at 10:14:03AM +0100, Bruno Postle wrote:
> > 
> > I've written a script to parse ptgui project files and write them out
> > as slightly more readable xml project files.

There's a new version here:
    http://bugbear.blackfish.org.uk/~bruno/ptx/2002-04-25/xpt-script-0.0.1.tar.gz

There are now three tools:

- pts2xpt:        a big nasty script that parses ptgui config files and
                  outputs nice xml.

- xpt2optimizer:  reads xml project files and outputs scripts ready for
                  ptoptimizer

- xpt2stitcher:   reads xml project files and outputs scripts ready for
                  ptstitcher

There is one tool remaining.  This needs to take the output from
ptoptimizer and use it to update the xml project file.

I'll attach another small xml example to this message.

I could use some more examples for testing these scripts with real-world
data - If anyone has some ptgui projects, could you send me the .pts
files and both the ptstitcher and optimizer scripts that they generate.

-- 
Bruno

--CUfgB8w4ZwR/yMy5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline; filename="000.xpt"

<xml>

  <input>

    <colorcorrect>
      <anchor>0</anchor>
      <type>rgb</type>
    </colorcorrect>

    <image id="0">
      <path>H:\ptgui\london\2001-05-29_027.jpg</path>
      <width>1280</width>
      <height>960</height>
      <type>
        <value>Rectilinear</value>
      </type>
      <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>-2.70775</value>
      </d>
      <e>
        <ref></ref>
        <optimize>true</optimize>
        <value>-13.326826</value>
      </e>
      <crop>
        <minx>52</minx>
        <maxx>1280</maxx>
        <miny>0</miny>
        <maxy>960</maxy>
      </crop>
    </image>

    <image id="1">
      <path>H:\ptgui\london\2001-05-29_028.jpg</path>
      <width>1280</width>
      <height>960</height>
      <type>
        <value>Rectilinear</value>
      </type>
      <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>
      <crop>
        <minx></minx>
        <maxx></maxx>
        <miny></miny>
        <maxy></maxy>
      </crop>
    </image>

  </input>

  <control>

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

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

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

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

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

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

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

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

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

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

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

  </control>

  <output>

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

  </output>

</xml>

--CUfgB8w4ZwR/yMy5--