Skip to content

KMeans Palette ​

The KMeans Palette creates, using the K-Means color quantization method, a palette of a given number of colors, consisting only of colors of the input image.

The palette is outputted as an image which is Count pixels wide and 1 pixel tall.

Inputs and Outputs ​

Inputs:

  • Image (Image): The input image.
  • Count (Integer): The number of colors in the output image.
  • Passes(Integer): The number of passes of the k-means algorithm.

Outputs:

  • Output (Image): The output image.

Example ​

Here is an example of this node in action: