code: def add_inlier_matches(
      db,
      image_id1,
      image_id2,
      matches,
      config=2,
      F=None,
      E=None,
      H=None,
  ):
      assert len(matches.shape) == 2
      assert matches.shape[1] == 2
  
      if image_id1 > image_id2:
          matches = matches[:, ::-1]
  
      if F is not None:
          F = np.asarray(F, np.float64)
      if E is not None:
          E = np.asarray(E, np.float64)
      if H is not None:
          H = np.asarray(H, np.float64)
  
      pair_id = get_pair_id(image_id1, image_id2)
      matches = np.asarray(matches, np.uint32)
      db.execute(
          "INSERT INTO inlier_matches VALUES (?, ?, ?, ?, ?, ?, ?, ?)",
          (pair_id,)
          + matches.shape
          + (array_to_blob(matches), config, F, E, H),
      )
  
file_path: nerfies/third_party/pycolmap/pycolmap/database.py
imports: import numpy
  import os
  import sqlite3
label_desc: Use image node_id 8 for calling a global function with example usage: add_inlier_matches(db, image_id1, image_id2, matches, config, F, E, H) without return types