Different rotation of cameras in .xmp and .csv

Comments

4 comments

  • Avatar
    Sasha

    Erik, thanks!

    Perhaps this will be helpful in answering the question. The rotation received from CSV matches the rotation matrix from XMP if
    heading = heading - 180
    roll = roll - 180
    and use YXZ. This can be checked using the calculator here https://www.andre-gaschler.com/rotationconverter/ and in the screenshot.

    But I do not understand why in the original version it does not give the same results. I am very interested in this in order to understand the export logic, since I want to add camera import from RC to my application.

    2
    Comment actions Permalink
  • Avatar
    Erik Kubiňan CR

    Hello dear user, 
    I will try to get your question answered, please be patient meanwhile.

    1
    Comment actions Permalink
  • Avatar
    Sasha

    I still hope you can help figure out why this is happening.

    0
    Comment actions Permalink
  • Avatar
    fighterman1

    I have the same problem for two datasets and I rely on the CSV calibration file including the internal/external camera parameters for my workflow.

    The first dataset is an outside-in capturing. I can convert Heading-Pitch-Roll to a rotation matrix following the workaround from Sasha with

    heading = heading - 180

    roll = roll - 180

    and using YXZ order.

    For the other dataset (inside-out camera array) I just have to change the order to ZYX to get the correct 3x3 matrix. Altering Heading-Pitch-Roll is not required there (in contrast to the first dataset).

    For my workflow I need a reliable automated way to import the calibration file and convert the euler angles to a matrix. However if the conversion differs between datasets it's impossible for me to find the correct conversion without manual checking.

    Is there any update on this from the RealityCapture support? Maybe a little explanation how Heading-Pitch-Roll is generated. I'm getting out of ideas and it's frustrating.

    0
    Comment actions Permalink

Please sign in to leave a comment.