openlifu.nav.photoscan.write_pair_file

openlifu.nav.photoscan.write_pair_file(images: List[Path], pairs: List[List[int]], camera_init_file: Path, output_path: Path) None[source]

Convert image index-based pairs to Meshroom internal view ID pairs using the provided camera_init_file. Write the result to a Meshroom compatible file.

Parameters:
  • images – A list of image Paths (ordered by index).

  • pairs – A list of lists of indices into the images list.

  • camera_init_file – Path to Meshroom’s cameraInit.sfm or similar file containing view IDs.

  • output_path – Path where the resulting pair file will be written.