ComfyUI Node
CV Filter Points By Distance
Keeps the points whose distance to an origin lies in [min_dist, max_dist] - e.g. corners in an annular band around a dial center, matches near an anchor. None or zero input points are valid (count = 0).
CV Filter Points By Distance
- points
- points
- count
◄origin_x0.00►
◄origin_y0.00►
◄min_dist0.00►
◄max_dist1000000.00►
Categoryimage/CV/points
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| points | NPARRAY | Nx1x2 point array (or None). | |
| origin_x | FLOAT | 0.00-1000000–1000000 | X pixel coordinate of the reference origin (e.g. the dial center, anchor, or ray start). |
| origin_y | FLOAT | 0.00-1000000–1000000 | Y pixel coordinate of the reference origin (e.g. the dial center, anchor, or ray start). |
| min_dist | FLOAT | 0.000–1000000 | Keep points at least this far (pixels) from the origin. |
| max_dist | FLOAT | 1000000.000–1000000 | Keep points at most this far (pixels) from the origin. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| points | NPARRAY | — |
| count | INT | — |