Forum

Author Topic: camera.xml  (Read 6469 times)

dze

  • Newbie
  • *
  • Posts: 4
    • View Profile
camera.xml
« on: August 19, 2014, 12:13:31 PM »
Hi
does someone have any documentation explaining the different fields/parameters in camera.xml file?
Regards


« Last Edit: August 20, 2014, 11:10:42 AM by dze »

dze

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: camera.xml
« Reply #1 on: August 26, 2014, 05:36:41 PM »
Any help please?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14839
    • View Profile
Re: camera.xml
« Reply #2 on: August 26, 2014, 06:04:44 PM »
Hello dze,

Do you mean export cameras or export calibration output?

Maybe you can post a sample to be more clear?
Best regards,
Alexey Pasumansky,
Agisoft LLC

dze

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: camera.xml
« Reply #3 on: August 26, 2014, 07:09:55 PM »
Hi Alexey

the file I'm talking about is the following
<?xml version="1.0" encoding="UTF-8"?>
<chunk>
   <sensors>
      <sensor id="0">
         <property value="some value" name="pixel_width"/>
         <property value="some value" name="pixel_height"/>
         <property value="some value" name="focal_length"/>
         <property value="false" name="fixed"/>
         <calibration type="frame" class="adjusted">
            <resolution height="...." width="...."/>
            <fx>"fx value"</fx>
            <fy>"fy value"</fy>
            <cx>"cx value"</cx>
            <cy>"cy value"</cy>
            <skew>"skew value"</skew>
            <k1>"k1 value"</k1>
            <k2>"k2 value"</k2>
            <k3>"k3 value"</k3>
            <p1>"P1 value"</p1>
            <p2>"p2 value"</p2>
         </calibration>
      </sensor>
   </sensors>
   <cameras>
      cameras details ...
   </cameras>
   <ground_control>
      ground control  ....

Regards

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14839
    • View Profile
Re: camera.xml
« Reply #4 on: August 27, 2014, 02:19:44 PM »
Hello dze,

This xml file represents the same information you can find in the Camera Calibration dialog.
pixel_width, pixel_height and focal_length are usually derived from EXIF and are estimated in mm. These values are used for correct Initial guess for autocalibration procedure.

Other parameters inside the <calibration> tags refer to the camera intrinsic parameters. The calibration model is described in Agisoft Lens manual, but in brief:
fx, fy - focal length in pixels,
cx, cy - principle point coordinates in pixels,
k1, k2, k3, k4 - radial distortion coefficients,
p1, p2 - tangential distortion coefficients.
Best regards,
Alexey Pasumansky,
Agisoft LLC

dze

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: camera.xml
« Reply #5 on: August 27, 2014, 04:47:28 PM »
Thanks Alexy, your post was helpful

I had a look to Agisoft Lens manual, now its is clear for calibration tags.

do you have any manual/document describing the following tags
<cameras>
     <resolution ....>
     <transform>     ....   </transform>

      cameras details ..
</cameras>
<ground_control>
      ground control
</ground_control>
<transform> </transform>
<reference> .... </reference>
<region>
    <center>... </center>
     <size>...</size>
     <R> ... </R>
</region>

what is the difference between the transform tag in cameras tag and the transform tag?
Regards


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14839
    • View Profile
Re: camera.xml
« Reply #6 on: August 27, 2014, 06:49:58 PM »
Hello dze,

4x4 matrix under camera section is related to the camera position and orientation in the internal coordinate system, and the isolated transform section contains 4x4 matrix that describes transformation between internal coordinates and system used for referencing (when chunk is referenced).
Best regards,
Alexey Pasumansky,
Agisoft LLC