Nodes/comfyui_cv/CV Filter Points By Mask
ComfyUI Node

CV Filter Points By Mask

Keeps the points flagged 1 in a per-point mask - e.g. the RANSAC inliers from 'CV Find Fundamental Matrix' / 'CV Find Homography (RANSAC)'. Run two of these with the SAME mask to filter a matched pair in lockstep (order is preserved), so 'CV Stereo Rectify (Uncalibrated)' and cv2.triangulatePoints get clean correspondences. None or zero input points are valid (count = 0); a None mask passes every point through unchanged.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Filter Points By Mask
  • points
  • mask
  • points
  • count
Categoryimage/CV/points

Inputs (2)

NameTypeDefaultDescription
pointsNPARRAYNx1x2 point array (or None).
maskoptNPARRAYNx1 uint8 mask: entries != 0 are kept. Must have one entry per point. None = keep all points.

Outputs (2)

NameTypeDescription
pointsNPARRAY
countINT