Skip to content
HALOWERK

Bildwerk

raster mask runlength contract

Return decoded binary-mask coverage, trailing pixels and canonical row-major run lengths. Supplied integer buffers only; no image download or model call.

POST https://bild.halowerk.com/v1/raster-mask-runlength-contract

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
widthintegerYes
heightintegerYes
runsarrayYes
starts_withintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "runs": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000
      },
      "maxItems": 1000,
      "minItems": 1
    },
    "starts_with": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1
    }
  },
  "required": [
    "width",
    "height",
    "runs",
    "starts_with"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "width": 3,
  "height": 2,
  "runs": [
    2,
    2,
    2
  ],
  "starts_with": 0
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub →