Results 1 to 4 of 4

Thread: Camera matching with 2d image

  1. #1

    Camera matching with 2d image

    Hi! let's say i have a 2d image of a place. I'd like to obtain the camera position that give that perspective, so that i can render 3d object over it.
    Here's an example of this:
    http://www.maxarea.com/modules.php?n...rticle&sid=897

    Is there a math approach ? For example i give the (2d coors, 3d coords) couples and it tells me the campera pos/rot ?

    Thanks!
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  2. #2

    Camera matching with 2d image

    I'm fairly sure there would be a mathematical approach to it, matching the selected vertices on the model with the corresponding positions on the picture as was done in that example. As to what that mathematical approach would be, I have no idea.

    Ok, some Google research led me from
    "camera matching" http://www.complete-support.com/stat...val+Guide.html
    to "photogrammetry" http://en.wikipedia.org/wiki/Photogrammetry
    to "Levenberg-Marquardt algorithm" http://en.wikipedia.org/wiki/Levenbe...ardt_algorithm
    of which there is an implementation in C at https://sourceforge.net/projects/lmfit/

    Hope that helps.

  3. #3

    Camera matching with 2d image

    Umm it seems vay too difficoult. I'll search for a program or plugin..
    I just need to obtain the camera at design time for some images..

    bye!
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  4. #4

    Camera matching with 2d image

    If anyone is interested here's a free Blender script that seems to work.
    http://www.warpax.com/pytsai/
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •