k.colors: Find main colours by k-means.

Description Usage Arguments

Description

Find main colours by k-means.

Usage

1
k.colors(img, num = 5, seed = 42)

Arguments

img

A 2D or 3D array. 3D arrays will be transformed into 2D.

num

Number of colours to extract.

seed

Seed for k-means.


monorunner/smcolors documentation built on May 23, 2019, 6:10 a.m.