Nodes/comfyui_cv/CV Filter Points By Distance
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).

By bmad4ever·Created 3 months ago·Updated 2 days ago· 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)

NameTypeDefaultDescription
pointsNPARRAYNx1x2 point array (or None).
origin_xFLOAT0.00-1000000–1000000X pixel coordinate of the reference origin (e.g. the dial center, anchor, or ray start).
origin_yFLOAT0.00-1000000–1000000Y pixel coordinate of the reference origin (e.g. the dial center, anchor, or ray start).
min_distFLOAT0.000–1000000Keep points at least this far (pixels) from the origin.
max_distFLOAT1000000.000–1000000Keep points at most this far (pixels) from the origin.

Outputs (2)

NameTypeDescription
pointsNPARRAY
countINT