Skip to content

Palettize (KMeans) ​

The Palettize (KMeans) node takes as input an image and a color palette and outputs a representation of the input image using with a limited color palette generated by using the K-Means color quantization method.

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: