simplify_colors(src, merge_distance, min_coverage)ΒΆ
Simply the colors used in the image. This is not useful for general color reduction but can be useful when using logo type images that have antialiasing that needs to be removed to leave only the most dominant colors in the image
Inputs
| name | type | default | description |
|---|---|---|---|
| src | image | Source image | |
| merge_distance | float | 2.000 | Maximum euclidean distance between colors to consider them for merging |
| min_coverage | float | 0.500 | Minimum percentage area to color must cover to be considered for keeping |
Outputs
| name | type | default | description |
|---|---|---|---|
| dst | image | Destination image |