Borrar filtros
Borrar filtros

Transfer camera pose from blender to matlab

7 visualizaciones (últimos 30 días)
Manfredi Calderaio
Manfredi Calderaio el 24 de Jul. de 2022
Respondida: Vidip Jain el 7 de Sept. de 2023
Hi,
I'm using the matlab vision toolbox. The methodology I'm using is to create a scene in blender and extracting from it camera pose(orientation and location) and imagines of the target. The output of blender is the input for my matlab code: imagines are used in the structure of motion for estimating the camera orientation and location(relative from an imagine to an other). My question is: how can I transform the camera pose from blender to the same reference system of the CamPoses in Matlab?

Respuestas (1)

Vidip Jain
Vidip Jain el 7 de Sept. de 2023
I understand you are using MATLAB vision toolbox and the output of blender is used as input for your MATLAB code. To transform the camera pose from blender to the same reference system of the CamPoses in MATLAB you need to ensure that both systems use a consistent coordinate system and reference frame. Here's a general approach to align the camera poses:
  1. Coordinate System Alignment: Ensure that both Blender and MATLAB are using the same coordinate system and conventions for the reference frame. Typically, this means aligning the axes to a common standard, such as the right-hand coordinate system with the X-axis pointing right, the Y-axis pointing up, and the Z-axis pointing forward.
  2. Camera Pose Format: Ensure that the camera pose data from Blender is in a format that can be easily translated into the format used in MATLAB. This format may include the camera's position (location) and orientation (rotation) information.
  3. Convert Rotation: Check if Blender provides the camera's rotation information in a specific representation, such as Euler angles, quaternion, or rotation matrix. If so, convert the rotation representation used in Blender to the representation used in MATLAB (e.g., rotation matrix or quaternion).
  4. Transform Position: Adjust the camera's position information to match the coordinate system used in MATLAB using matrix multiplication. This may involve flipping or reordering the position values based on the axis alignment.
By understanding the coordinate systems and conventions used in both tools and performing the necessary transformations manually or with custom code, you can ensure that camera poses are consistent between Blender and MATLAB for further processing.

Categorías

Más información sobre Specialized Messages en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by