[][src]Function opencv::viz::write_trajectory

pub fn write_trajectory(
    traj: &dyn ToInputArray,
    files_format: &str,
    start: i32,
    tag: &str
) -> Result<()>

takes vector<Affine3> with T = float/dobule and writes to a sequence of files with given filename format

Parameters

  • traj: Trajectory containing a list of poses. It can be - std::vectorcv::Mat, each cv::Mat is of type CV_32F16 or CV_64FC16 - std::vectorcv::Affine3f, std::vectorcv::Affine3d - cv::Mat of type CV_32FC16 OR CV_64F16
  • files_format: Format specifier string for constructing filenames. The only placeholder in the string should support int.
  • start: The initial counter for files_format.
  • tag: Name of the matrix in the file.

C++ default parameters

  • files_format: "pose%05d.xml"
  • start: 0
  • tag: "pose"