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).
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)
| Name | Type | Default | Description |
|---|---|---|---|
| count | INT | 600–100000 | How many points to draw. 0 is valid and yields an empty point array (for testing the degenerate path). |
| distribution | COMBO | gaussian (normal) | gaussian: normal distribution, spread = standard deviation per axis. uniform: even fill of the box center +/- spread. |
| center_x | FLOAT | 100.00-1000000–1000000 | X coordinate of the cloud center (pixels). |
| center_y | FLOAT | 100.00-1000000–1000000 | Y coordinate of the cloud center (pixels). |
| spread_x | FLOAT | 12.000–1000000 | Horizontal spread: std for gaussian, half-extent for uniform (pixels). |
| spread_y | FLOAT | 12.000–1000000 | Vertical spread: std for gaussian, half-extent for uniform (pixels). |
| seed | INT | 00–2147483647 | Random seed - the same seed always yields the same points. Use different seeds for different classes. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| points | NPARRAY | Nx1x2 float32 (x, y) points - feeds 'CV Draw Points', 'CV Stack Feature Classes' and every other point node. |
| count | INT | — |