Skip to content
HALOWERK

Image Processing

color palette weighted medoid

Return the supplied palette entry minimizing weighted squared CIELAB distance and its distortion ledger.

POST https://bild.halowerk.com/v1/color-palette-weighted-medoid

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
colorsarrayYes
weightsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "colors": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number",
          "minimum": -10000,
          "maximum": 10000
        },
        "maxItems": 3,
        "minItems": 3
      },
      "maxItems": 100,
      "minItems": 1
    },
    "weights": {
      "type": "array",
      "items": {
        "type": "number",
        "minimum": 0,
        "maximum": 1000000
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "colors",
    "weights"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "colors": [
    [
      0,
      0,
      0
    ],
    [
      50,
      0,
      0
    ],
    [
      100,
      0,
      0
    ]
  ],
  "weights": [
    1,
    1,
    1
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub →