Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

cms / cms squared euclidean distance field

An agent that pads an exported CMS icon mask needs its claimed exact squared Euclidean distance field checked for every raster cell rather than using Manhattan or chamfer distances.

POST https://detect.halowerk.com/v1/cms/cms-squared-euclidean-distance-field

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "width": {
          "type": "integer",
          "minimum": 1,
          "maximum": 32
        },
        "height": {
          "type": "integer",
          "minimum": 1,
          "maximum": 32
        },
        "foreground": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1
          },
          "minItems": 1,
          "maxItems": 1024
        },
        "claimed_squared_distances": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": -1,
            "maximum": 2048
          },
          "minItems": 1,
          "maxItems": 1024
        }
      },
      "required": [
        "width",
        "height",
        "foreground",
        "claimed_squared_distances"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "width": 6,
    "height": 6,
    "foreground": [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      1,
      0,
      0,
      0,
      0,
      0,
      1,
      0,
      0,
      1,
      1,
      0,
      0,
      0,
      0,
      0,
      1,
      0,
      0,
      1,
      0,
      0,
      0,
      1,
      0,
      1,
      0
    ],
    "claimed_squared_distances": [
      9,
      5,
      2,
      1,
      2,
      5,
      4,
      4,
      1,
      0,
      1,
      4,
      1,
      1,
      1,
      0,
      1,
      4,
      0,
      0,
      1,
      1,
      1,
      2,
      1,
      0,
      1,
      1,
      0,
      1,
      2,
      1,
      0,
      1,
      0,
      1
    ]
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →