stuarta0 / blender-photogrammetry

Blender addon for structure from motion tools to allow dense point cloud reconstruction from Blender's camera tracker
260 stars 25 forks source link

Add debugging for bundle points #3

Closed stuarta0 closed 6 years ago

stuarta0 commented 6 years ago

Other software has the ability to export debugging SVGs with image points on them (e.g. openMVG). Implement a simple SVG debug output like those tools:

<svg width="1920" height="1080" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <image xlink:href="/path/to/image/0001.jpg"/>
    <circle cx="1696.62" cy="728.95" r="5" fill="none" stroke="#f00" stroke-width=".5"/>
    <!-- repeat circles for as many points are visible for this camera -->
</svg>

Coordinates are (0,0) top left. If we set the SVG resolution the same as the bundler images, the point translation should be something like (x + width/2, height/2 - y)

stuarta0 commented 6 years ago

Added operator bpy.ops.debug.bundler_svg('INVOKE_DEFAULT')