design_trace_regions
Segments an image into color regions using k-means clustering and returns dominant colors and region masks, optionally creating a trace layer for design work.
Instructions
Segment the image into color regions using k-means clustering. Returns dominant colors and region masks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of color clusters (default: 5). | |
| sourceId | No | Reference image asset ID (default: current canvas). | |
| createLayer | No | Create a trace layer (default: true). |