Nodes/comfyui_cv/CV Draw Epipolar Lines
ComfyUI Node

CV Draw Epipolar Lines

Debug helper: draws epipolar lines (ax + by + c = 0, from cv2.computeCorrespondEpilines) across the image, optionally marking this image's matched points in the same per-index color - use two of these nodes with the same inlier mask and a point in one view shares its color with its epipolar line in the other. Degenerate all-zero lines (e.g. from a not-found fundamental matrix) are skipped instead of erroring.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Draw Epipolar Lines
  • source
  • lines
  • points
  • inlier_mask
  • image
max_draw40
thickness1
Categoryimage/CV/features

Inputs (6)

NameTypeDefaultDescription
sourceCOMFY_MATCHTYPE_V3Image or mask to draw the epilines on (a copy is made). 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.
linesNPARRAYNx1x3 line coefficients from cv2.computeCorrespondEpilines.
max_drawINT400–10000Draw at most this many lines (after inlier filtering). 0 = all - usually too cluttered.
thicknessINT11–16Line width in pixels (point dots scale with it).
pointsoptNPARRAYThis image's matched points (Nx1x2): each is marked with a dot in its line color.
inlier_maskoptNPARRAYNx1 uint8 mask from the fundamental-matrix node: only entries flagged 1 are drawn.

Outputs (1)

NameTypeDescription
imageCOMFY_MATCHTYPE_V3Same format as the image input.