[][src]Function opencv::viz::make_transform_to_global

pub fn make_transform_to_global(
    axis_x: Vec3d,
    axis_y: Vec3d,
    axis_z: Vec3d,
    origin: Vec3d
) -> Result<Affine3d>

Takes coordinate frame data and builds transform to global coordinate frame.

Parameters

  • axis_x: X axis vector in global coordinate frame.
  • axis_y: Y axis vector in global coordinate frame.
  • axis_z: Z axis vector in global coordinate frame.
  • origin: Origin of the coordinate frame in global coordinate frame.

Returns

An affine transform that describes transformation between global coordinate frame and a given coordinate frame. The returned transforms can transform a point in the given coordinate frame to the global coordinate frame.

C++ default parameters

  • origin: Vec3d::all(0)