Forum

Author Topic: Meshlab MLP Export for Cameras  (Read 6462 times)

James

  • Hero Member
  • *****
  • Posts: 766
    • View Profile
Meshlab MLP Export for Cameras
« on: October 04, 2013, 07:17:27 PM »
Now meshlab has fun raster layer functions, it would be good to be able to export cameras as an MLP file.

This kind of format seems to work, although I don't claim to understand all the numbers!

Code: [Select]
<!DOCTYPE MeshLabDocument>
<MeshLabProject>
 <RasterGroup>
  <MLRaster label="DSC_5227.JPG">
   <VCGCamera TranslationVector="-3.12203 42.8511 -41.8889 1" LensDistortion="0 0" ViewportPx="4928 3264" PixelSizeMm="1 1" CenterPx="2464 1632" FocalMm="11207" RotationMatrix="0.997452 0.0712106 -0.00441334 0 0.00968197 -0.073812 0.997225 0 0.0706873 -0.994727 -0.0743134 0 0 0 0 1 "/>
   <Plane semantic="" fileName="DSC_5227.JPG"/>
  </MLRaster>
  <MLRaster label="DSC_5228.JPG">
   <VCGCamera TranslationVector="-2.33531 43.1249 -41.881 1" LensDistortion="0 0" ViewportPx="4928 3264" PixelSizeMm="1 1" CenterPx="2464 1632" FocalMm="11207" RotationMatrix="0.998128 0.0611126 -0.00248223 0 0.00626142 -0.0617261 0.998073 0 0.0608417 -0.99622 -0.0619932 0 0 0 0 1 "/>
   <Plane semantic="" fileName="DSC_5228.JPG"/>
  </MLRaster>
etc
 </RasterGroup>
</MeshLabProject>

This was created by exporting cameras from PS as bundler .out and manually creating the camera list file to import to meshlab, so it is possible to do it currently, and not important, but might be a nice feature.