Nodes/comfyui_cv/CV Random Points
ComfyUI Node

CV Random Points

Synthesizes a random 2-D point cloud around a center - a Gaussian blob (or a uniform box) of count points. Deterministic per seed. Use several of these as synthetic classes for 'CV Stack Feature Classes' + 'CV Train Classifier' (the classic decision-boundary playground), as k-means test data, or to scatter markers for 'CV Draw Points'. count = 0 is a valid output (empty array).

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Random Points
    • points
    • count
    count60
    distributiongaussian (normal)
    center_x100.00
    center_y100.00
    spread_x12.00
    spread_y12.00
    seed0
    Categoryimage/CV/ml

    Inputs (7)

    NameTypeDefaultDescription
    countINT600–100000How many points to draw. 0 is valid and yields an empty point array (for testing the degenerate path).
    distributionCOMBOgaussian (normal)gaussian: normal distribution, spread = standard deviation per axis. uniform: even fill of the box center +/- spread.
    center_xFLOAT100.00-1000000–1000000X coordinate of the cloud center (pixels).
    center_yFLOAT100.00-1000000–1000000Y coordinate of the cloud center (pixels).
    spread_xFLOAT12.000–1000000Horizontal spread: std for gaussian, half-extent for uniform (pixels).
    spread_yFLOAT12.000–1000000Vertical spread: std for gaussian, half-extent for uniform (pixels).
    seedINT00–2147483647Random seed - the same seed always yields the same points. Use different seeds for different classes.

    Outputs (2)

    NameTypeDescription
    pointsNPARRAYNx1x2 float32 (x, y) points - feeds 'CV Draw Points', 'CV Stack Feature Classes' and every other point node.
    countINT