ComfyUI Node
CV Draw Matches
Debug helper: draws the matched keypoint pairs side by side (cv2.drawMatches). Feed the inlier mask from cv2.findHomography / cv2.findFundamentalMat to show only RANSAC inliers.
CV Draw Matches
- image_a
- keypoints_a
- image_b
- keypoints_b
- matches
- inlier_mask
- image
◄max_draw0►
◄color(0, 255, 0)►
Categoryimage/CV/features
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| image_a | COMFY_MATCHTYPE_V3 | Left image of the pair. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. | |
| keypoints_a | CV_KEYPOINTS | Keypoints of image A. | |
| image_b | COMFY_MATCHTYPE_V3 | Right image of the pair (same format as image_a). Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. | |
| keypoints_b | CV_KEYPOINTS | Keypoints of image B. | |
| matches | CV_MATCHES | Matches from 'CV Match Features' to draw. | |
| max_draw | INT | 00–10000 | Draw at most this many matches (best first). 0 = all. |
| inlier_maskopt | NPARRAY | Nx1 uint8 mask from findHomography & co: only matches flagged 1 are drawn. | |
| coloropt | STRING | (0, 255, 0) | Color of the match lines and their keypoints, as a single value or a BGR tuple. The green default vanishes over foliage, grass or any green subject - set something the pair of photos does not contain. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | COMFY_MATCHTYPE_V3 | Side-by-side canvas, same format as the image inputs. |