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.
CV Filter Points By Mask
- points
- mask
- points
- count
Categoryimage/CV/points
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| points | NPARRAY | Nx1x2 point array (or None). | |
| maskopt | NPARRAY | Nx1 uint8 mask: entries != 0 are kept. Must have one entry per point. None = keep all points. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| points | NPARRAY | — |
| count | INT | — |