[][src]Function opencv::viz::read_trajectory

pub fn read_trajectory(
    traj: &mut dyn ToOutputArray,
    files_format: &str,
    start: i32,
    end: i32,
    tag: &str
) -> Result<()>

takes vector<Affine3> with T = float/dobule and loads poses from sequence of files

Parameters

  • traj: Output array containing a lists of poses. It can be - std::vectorcv::Affine3f, std::vectorcv::Affine3d - cv::Mat
  • files_format: Format specifier string for constructing filenames. The only placeholder in the string should support int.
  • start: The initial counter for files_format. It must be greater than or equal to 0.
  • end: The final counter for files_format.
  • tag: Name of the matrix in the file.

C++ default parameters

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