{
 "last_node_id": 11,
 "last_link_id": 10,
 "nodes": [
  {
   "id": 1,
   "type": "MarkdownNote",
   "pos": [
    0,
    -372.0
   ],
   "size": [
    640,
    202
   ],
   "flags": {},
   "order": 1,
   "mode": 0,
   "inputs": [],
   "outputs": [],
   "properties": {},
   "widgets_values": [
    "**Needs in ComfyUI's `input` folder:** `clip0.png`, `clip3.png`\n\nDense / sparse matching of two views (RoMa v2, LoMa, LoFTR, ALIKED + LightGlue): the lines join the matched points (green = geometrically consistent, red = outliers), the JSON holds the points. Try two frames of one clip. The homography and the relative pose come from the same matches."
   ]
  },
  {
   "id": 2,
   "type": "LoadImage",
   "pos": [
    0.0,
    0.0
   ],
   "size": [
    300,
    340
   ],
   "flags": {},
   "order": 2,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      1,
      6
     ],
     "slot_index": 0
    },
    {
     "name": "MASK",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    }
   ],
   "properties": {},
   "widgets_values": [
    "clip0.png",
    "image"
   ]
  },
  {
   "id": 3,
   "type": "LoadImage",
   "pos": [
    0.0,
    380.0
   ],
   "size": [
    300,
    340
   ],
   "flags": {},
   "order": 3,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      2,
      7
     ],
     "slot_index": 0
    },
    {
     "name": "MASK",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    }
   ],
   "properties": {},
   "widgets_values": [
    "clip3.png",
    "image"
   ]
  },
  {
   "id": 4,
   "type": "FastforksMatch",
   "pos": [
    540.0,
    0.0
   ],
   "size": [
    330,
    260
   ],
   "flags": {},
   "order": 4,
   "mode": 0,
   "inputs": [
    {
     "name": "image1",
     "type": "IMAGE",
     "link": 1
    },
    {
     "name": "image2",
     "type": "IMAGE",
     "link": 2
    }
   ],
   "outputs": [
    {
     "name": "preview",
     "type": "IMAGE",
     "links": [
      3
     ],
     "slot_index": 0
    },
    {
     "name": "matches",
     "type": "STRING",
     "links": [],
     "slot_index": 1
    },
    {
     "name": "homography",
     "type": "STRING",
     "links": [
      4
     ],
     "slot_index": 2
    },
    {
     "name": "pose",
     "type": "STRING",
     "links": [
      5
     ],
     "slot_index": 3
    }
   ],
   "properties": {},
   "title": "match 1 (fastforks)",
   "widgets_values": [
    "romav2",
    "auto",
    "auto",
    2000,
    150,
    1,
    0.0
   ]
  },
  {
   "id": 5,
   "type": "PreviewImage",
   "pos": [
    950.0,
    0.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 5,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 3
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 6,
   "type": "PreviewAny",
   "pos": [
    950.0,
    340.0
   ],
   "size": [
    300,
    120
   ],
   "flags": {},
   "order": 6,
   "mode": 0,
   "inputs": [
    {
     "name": "source",
     "type": "*",
     "link": 4
    }
   ],
   "outputs": [
    {
     "name": "STRING",
     "type": "STRING",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "title": "homography",
   "widgets_values": []
  },
  {
   "id": 7,
   "type": "PreviewAny",
   "pos": [
    950.0,
    500.0
   ],
   "size": [
    300,
    200
   ],
   "flags": {},
   "order": 7,
   "mode": 0,
   "inputs": [
    {
     "name": "source",
     "type": "*",
     "link": 5
    }
   ],
   "outputs": [
    {
     "name": "STRING",
     "type": "STRING",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "title": "pose",
   "widgets_values": []
  },
  {
   "id": 8,
   "type": "FastforksMatch",
   "pos": [
    540.0,
    420.0
   ],
   "size": [
    330,
    260
   ],
   "flags": {},
   "order": 8,
   "mode": 0,
   "inputs": [
    {
     "name": "image1",
     "type": "IMAGE",
     "link": 6
    },
    {
     "name": "image2",
     "type": "IMAGE",
     "link": 7
    }
   ],
   "outputs": [
    {
     "name": "preview",
     "type": "IMAGE",
     "links": [
      8
     ],
     "slot_index": 0
    },
    {
     "name": "matches",
     "type": "STRING",
     "links": [],
     "slot_index": 1
    },
    {
     "name": "homography",
     "type": "STRING",
     "links": [
      9
     ],
     "slot_index": 2
    },
    {
     "name": "pose",
     "type": "STRING",
     "links": [
      10
     ],
     "slot_index": 3
    }
   ],
   "properties": {},
   "title": "match 2 (fastforks)",
   "widgets_values": [
    "loftr-outdoor",
    "auto",
    "auto",
    2000,
    150,
    1,
    0.0
   ]
  },
  {
   "id": 9,
   "type": "PreviewImage",
   "pos": [
    950.0,
    740.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 9,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 8
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 10,
   "type": "PreviewAny",
   "pos": [
    950.0,
    1080.0
   ],
   "size": [
    300,
    120
   ],
   "flags": {},
   "order": 10,
   "mode": 0,
   "inputs": [
    {
     "name": "source",
     "type": "*",
     "link": 9
    }
   ],
   "outputs": [
    {
     "name": "STRING",
     "type": "STRING",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "title": "homography",
   "widgets_values": []
  },
  {
   "id": 11,
   "type": "PreviewAny",
   "pos": [
    950.0,
    1240.0
   ],
   "size": [
    300,
    200
   ],
   "flags": {},
   "order": 11,
   "mode": 0,
   "inputs": [
    {
     "name": "source",
     "type": "*",
     "link": 10
    }
   ],
   "outputs": [
    {
     "name": "STRING",
     "type": "STRING",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "title": "pose",
   "widgets_values": []
  }
 ],
 "links": [
  [
   1,
   2,
   0,
   4,
   0,
   "IMAGE"
  ],
  [
   2,
   3,
   0,
   4,
   1,
   "IMAGE"
  ],
  [
   3,
   4,
   0,
   5,
   0,
   "IMAGE"
  ],
  [
   4,
   4,
   2,
   6,
   0,
   "*"
  ],
  [
   5,
   4,
   3,
   7,
   0,
   "*"
  ],
  [
   6,
   2,
   0,
   8,
   0,
   "IMAGE"
  ],
  [
   7,
   3,
   0,
   8,
   1,
   "IMAGE"
  ],
  [
   8,
   8,
   0,
   9,
   0,
   "IMAGE"
  ],
  [
   9,
   8,
   2,
   10,
   0,
   "*"
  ],
  [
   10,
   8,
   3,
   11,
   0,
   "*"
  ]
 ],
 "groups": [
  {
   "id": 1,
   "title": "Inputs",
   "bounding": [
    -30.0,
    -90.0,
    360.0,
    840.0
   ],
   "color": "#88A",
   "font_size": 24,
   "flags": {}
  },
  {
   "id": 2,
   "title": "fastforks",
   "bounding": [
    510.0,
    -90.0,
    770.0,
    1560.0
   ],
   "color": "#3f789e",
   "font_size": 24,
   "flags": {}
  }
 ],
 "config": {},
 "extra": {},
 "version": 0.4
}